solidity/test/libsolidity/smtCheckerTests/types/array_dynamic_1_fail.sol
Leonardo Alt cb6c2b33f8 Add tests
2019-03-06 11:29:26 +01:00

14 lines
230 B
Solidity

pragma experimental SMTChecker;
contract C
{
uint[] array;
function f(uint x, uint y) public {
array[x] = 200;
require(x == y);
assert(array[y] > 300);
}
}
// ----
// Warning: (137-159): Assertion violation happens here