diff options
Diffstat (limited to 'test/libsolidity/smtCheckerTests/loops/while_loop_simple_2.sol')
-rw-r--r-- | test/libsolidity/smtCheckerTests/loops/while_loop_simple_2.sol | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/smtCheckerTests/loops/while_loop_simple_2.sol b/test/libsolidity/smtCheckerTests/loops/while_loop_simple_2.sol new file mode 100644 index 00000000..92a3f0fe --- /dev/null +++ b/test/libsolidity/smtCheckerTests/loops/while_loop_simple_2.sol @@ -0,0 +1,9 @@ +pragma experimental SMTChecker; +// Check that condition is assumed. +contract C { + function f(uint x) public pure { + while (x == 2) { + assert(x == 2); + } + } +} |