diff options
Diffstat (limited to 'test/libsolidity/smtCheckerTests/018_ways_to_merge_variables.sol')
-rw-r--r-- | test/libsolidity/smtCheckerTests/018_ways_to_merge_variables.sol | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/libsolidity/smtCheckerTests/018_ways_to_merge_variables.sol b/test/libsolidity/smtCheckerTests/018_ways_to_merge_variables.sol new file mode 100644 index 00000000..e25ab20f --- /dev/null +++ b/test/libsolidity/smtCheckerTests/018_ways_to_merge_variables.sol @@ -0,0 +1,12 @@ +pragma experimental SMTChecker; +contract C { + function f(uint x) public pure { + uint a = 3; + if (x > 10) { + ++a; + } + assert(a == 3); + } +} +// ---- +// Warning: (159-173): Assertion violation happens here |