solidity/test/libsolidity/smtCheckerTests/array_members/push_zero_safe.sol

10 lines
129 B
Solidity
Raw Normal View History

2020-05-17 21:21:08 +00:00
pragma experimental SMTChecker;
contract C {
uint[] a;
function f() public {
a.push();
assert(a[a.length - 1] == 0);
}
}