aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/smtCheckerTests/types/mapping_aliasing_1.sol5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/libsolidity/smtCheckerTests/types/mapping_aliasing_1.sol b/test/libsolidity/smtCheckerTests/types/mapping_aliasing_1.sol
index 1c7e8b8a..39d096f5 100644
--- a/test/libsolidity/smtCheckerTests/types/mapping_aliasing_1.sol
+++ b/test/libsolidity/smtCheckerTests/types/mapping_aliasing_1.sol
@@ -7,9 +7,12 @@ contract C
function f() public {
require(a[1] == b[1]);
+ a[1] = 2;
mapping (uint => uint) storage c = a;
- c[1] = 2;
+ assert(c[1] == 2);
// False negative! Needs aliasing.
assert(a[1] == b[1]);
}
}
+// ----
+// Warning: (261-281): Assertion violation happens here