solidity/test/libsolidity/smtCheckerTests/types/array_static_1_fail.sol

14 lines
237 B
Solidity
Raw Normal View History

2019-02-20 15:41:54 +00:00
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 4661: (139-161): Assertion violation happens here