solidity/test/libsolidity/smtCheckerTests/types/array_static_1_fail.sol
2020-07-23 18:49:03 +02:00

14 lines
237 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 6328: (139-161): Assertion violation happens here