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

14 lines
249 B
Solidity
Raw Normal View History

2018-11-09 16:06:30 +00:00
pragma experimental SMTChecker;
contract C
{
mapping (uint => mapping (uint => uint)) map;
function f(uint x) public {
x = 41;
map[13][14] = 42;
assert(x == map[13][14]);
}
}
// ----
// Warning: (154-178): Assertion violation happens here