solidity/test/libsolidity/semanticTests/array/pop/array_pop_empty_exception.sol

14 lines
232 B
Solidity

contract c {
uint256[] data;
function test() public returns (bool) {
data.pop();
return true;
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() -> FAILURE, hex"4e487b71", 0x31