solidity/test/libsolidity/smtCheckerTests/types/mapping_3.sol
2018-12-14 12:21:53 +01:00

13 lines
177 B
Solidity

pragma experimental SMTChecker;
contract C
{
mapping (uint => uint) map;
function f() public {
map[1] = 111;
uint x = map[2];
map[1] = 112;
assert(map[2] == x);
}
}