mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			246 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			246 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
function add(uint a, uint b) pure returns (uint) {
 | 
						|
  return a + b;
 | 
						|
}
 | 
						|
 | 
						|
contract C {
 | 
						|
  function f(uint x) public pure returns (uint) {
 | 
						|
    return add(x, 2);
 | 
						|
  }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// compileViaYul: also
 | 
						|
// ----
 | 
						|
// f(uint256): 7 -> 9
 |