solidity/test/libsolidity/smtCheckerTests/array_members/push_overflow_1_safe.sol
2020-05-18 16:35:56 +02:00

11 lines
176 B
Solidity

pragma experimental SMTChecker;
contract C {
uint256[] x;
constructor() public { x.push(42); }
function f() public {
x.push(23);
assert(x[0] == 42 || x[0] == 23);
}
}