solidity/test/libsolidity/semanticTests/inlineAssembly/shadowing_local_function_opcode.sol
2022-05-19 20:23:28 +02:00

14 lines
281 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)
}
}
}
// ====
// compileToEwasm: also
// ----
// g() -> 7, 3