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

14 lines
232 B
Solidity

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