mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
267 B
Solidity
16 lines
267 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
|
||
|
contract C
|
||
|
{
|
||
|
mapping (uint => uint) a;
|
||
|
mapping (uint => uint) b;
|
||
|
|
||
|
function f() public {
|
||
|
require(a[1] == b[1]);
|
||
|
mapping (uint => uint) storage c = a;
|
||
|
c[1] = 2;
|
||
|
// False negative! Needs aliasing.
|
||
|
assert(a[1] == b[1]);
|
||
|
}
|
||
|
}
|