mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			303 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			303 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
// IRGeneratorForStatements::visit(VariableDeclarationStatement const& _varDeclStatement)
 | 
						|
contract C {
 | 
						|
    function f() public pure returns (uint y) {
 | 
						|
        uint8 a;
 | 
						|
        assembly { a := 0x12345678 }
 | 
						|
        uint z = a;
 | 
						|
        y = z;
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// ----
 | 
						|
// f() -> 0x78
 |