solidity/test/libsolidity/semanticTests/abiEncoderV2/bool_out_of_bounds.sol

13 lines
265 B
Solidity
Raw Normal View History

2020-11-23 18:06:44 +00:00
pragma abicoder v2;
contract C {
function f(bool b) public pure returns (bool) { return b; }
}
// ====
// compileToEwasm: also
// ----
// f(bool): true -> true
// f(bool): false -> false
// f(bool): 0x000000 -> false
// f(bool): 0xffffff -> FAILURE