mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			477 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			477 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    function f() public {
 | 
						|
        assembly {
 | 
						|
            let a1, b1, c1
 | 
						|
 | 
						|
            function asmfun(a, b, c) -> x, y, z {
 | 
						|
                x := a
 | 
						|
                y := b
 | 
						|
                z := 7
 | 
						|
            }
 | 
						|
            a1, b1, c1 := asmfun(1, 2, 3)
 | 
						|
            mstore(0x00, a1)
 | 
						|
            mstore(0x20, b1)
 | 
						|
            mstore(0x40, c1)
 | 
						|
            return (0, 0x60)
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// compileViaYul: also
 | 
						|
// ----
 | 
						|
// f() -> 1, 2, 7
 |