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

12 lines
176 B
Solidity
Raw Normal View History

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