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

11 lines
149 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();
a[0].push();
assert(a[a.length - 1][0] == 0);
}
}