mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			384 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			384 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| // IRGeneratorForStatements::visit(FunctionCall const& _functionCall)
 | |
| contract C {
 | |
|     function f(uint b) public pure returns (uint x) {
 | |
|         x = b;
 | |
|     }
 | |
|     function g() public pure returns (uint x) {
 | |
|         uint8 a;
 | |
|         assembly {
 | |
|             a := 0x12345678
 | |
|         }
 | |
|         x = f(a);
 | |
|     }
 | |
| }
 | |
| // ====
 | |
| // compileToEwasm: also
 | |
| // compileViaYul: also
 | |
| // ----
 | |
| // g() -> 0x78
 |