mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			280 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			280 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    function add(uint, uint) public pure returns (uint) { return 7; }
 | 
						|
    function g() public pure returns (uint x, uint y) {
 | 
						|
        x = add(1, 2);
 | 
						|
        assembly {
 | 
						|
            y := add(1, 2)
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileViaYul: also
 | 
						|
// ----
 | 
						|
// g() -> 7, 3
 |