solidity/test/libsolidity/semanticTests/inlineAssembly/shadowing_local_function_opcode.sol

15 lines
304 B
Solidity
Raw Normal View History

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
2021-04-23 15:59:01 +00:00
// compileToEwasm: also
// ----
// g() -> 7, 3