solidity/test/libsolidity/semanticTests/freeFunctions/easy.sol

14 lines
222 B
Solidity
Raw Normal View History

2020-05-04 16:38:00 +00:00
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);
}
}
// ====
// compileViaYul: also
// ----
// f(uint256): 7 -> 9