solidity/test/libsolidity/smtCheckerTests/types/tuple_assignment_array_empty.sol
2019-05-02 12:55:34 +02:00

15 lines
245 B
Solidity

pragma experimental SMTChecker;
contract C
{
uint[] a;
function g(uint x, uint y) public {
require(x != y);
(, a[y]) = (2, 4);
assert(a[x] == 2);
assert(a[y] == 4);
}
}
// ----
// Warning: (136-153): Assertion violation happens here