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

15 lines
219 B
Solidity

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