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

11 lines
177 B
Solidity
Raw Normal View History

2020-05-17 18:20:17 +00:00
pragma experimental SMTChecker;
contract C {
uint[][] a;
function f(uint[] memory x, uint y) public {
a.push(x);
a[0].push(y);
assert(a[0][a[0].length - 1] == y);
}
}