solidity/test/libsolidity/semanticTests/various/gasleft_shadow_resolution.sol
2020-03-19 14:42:25 +01:00

15 lines
218 B
Solidity

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