diff options
Diffstat (limited to 'test/libsolidity/smtCheckerTests/bool_simple_6.sol')
-rw-r--r-- | test/libsolidity/smtCheckerTests/bool_simple_6.sol | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/smtCheckerTests/bool_simple_6.sol b/test/libsolidity/smtCheckerTests/bool_simple_6.sol new file mode 100644 index 00000000..90350bb6 --- /dev/null +++ b/test/libsolidity/smtCheckerTests/bool_simple_6.sol @@ -0,0 +1,9 @@ +pragma experimental SMTChecker; +contract C { + function f(bool x) public pure { + require(x); + bool y; + y = false; + assert(x || y); + } +} |