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

12 lines
191 B
Solidity

pragma experimental SMTChecker;
contract C {
uint[][] a;
function f(uint[] memory x, uint y) public {
a.push(x);
a[0].push(y);
a[0].pop();
assert(a[0][a[0].length - 1] == y);
}
}