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

13 lines
213 B
Solidity

contract C {
function f() public returns (uint) {
return block.gaslimit;
}
}
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f() -> 20000000
// f() -> 20000000
// f() -> 20000000