diff options
Diffstat (limited to 'test/libsolidity/smtCheckerTests/loops/for_loop_4.sol')
-rw-r--r-- | test/libsolidity/smtCheckerTests/loops/for_loop_4.sol | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/smtCheckerTests/loops/for_loop_4.sol b/test/libsolidity/smtCheckerTests/loops/for_loop_4.sol new file mode 100644 index 00000000..4d082026 --- /dev/null +++ b/test/libsolidity/smtCheckerTests/loops/for_loop_4.sol @@ -0,0 +1,10 @@ +pragma experimental SMTChecker; +contract C { + function f(uint x) public pure { + for (uint y = 2; x < 10; y = 3) { + assert(y == 2); + } + } +} +// ---- +// Warning: (136-150): Assertion violation happens here |