solidity/test/libsolidity/smtCheckerTests/array_members/length_same_after_assignment.sol

11 lines
172 B
Solidity
Raw Normal View History

2020-04-14 09:09:38 +00:00
pragma experimental SMTChecker;
contract C {
uint[] arr;
function f() public view {
uint[] memory arr2 = arr;
arr2[2] = 3;
assert(arr.length == arr2.length);
}
}