solidity/test/libsolidity/semanticTests/various/gasleft_shadow_resolution.sol

16 lines
242 B
Solidity

contract C {
function gasleft() public returns (uint256) {
return 0;
}
function f() public returns (uint256) {
return gasleft();
}
}
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f() -> 0