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

11 lines
177 B
Solidity

pragma experimental SMTChecker;
contract C
{
function f(uint[] memory array, uint x, uint y) public pure {
array[x] = 200;
require(x == y);
assert(array[y] > 100);
}
}