solidity/test/libsolidity/semanticTests/state/gasleft.sol

13 lines
200 B
Solidity

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