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

13 lines
187 B
Solidity

contract c {
uint256[] data;
function test() public returns (bool) {
data.pop();
return true;
}
}
// ====
// compileViaYul: also
// ----
// test() -> FAILURE