mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
416 B
Solidity
19 lines
416 B
Solidity
pragma experimental SMTChecker;
|
|
contract C {
|
|
int[][] array2d;
|
|
function l() public {
|
|
s().push();
|
|
// False positive.
|
|
// Knowledge is erased because `s()` is a storage pointer.
|
|
assert(array2d[2].length > 0);
|
|
}
|
|
function s() internal returns (int[] storage) {
|
|
array2d.push();
|
|
array2d.push();
|
|
array2d.push();
|
|
return array2d[2];
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 6328: (184-213): Assertion violation happens here
|