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

9 lines
121 B
Solidity
Raw Normal View History

2020-05-17 21:21:08 +00:00
contract C {
uint[] a;
function f() public {
a.push();
assert(a[a.length - 1] == 0);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all