diff options
Diffstat (limited to 'test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_require.sol')
-rw-r--r-- | test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_require.sol | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_require.sol b/test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_require.sol new file mode 100644 index 00000000..e76badf2 --- /dev/null +++ b/test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_require.sol @@ -0,0 +1,8 @@ +pragma experimental SMTChecker; + +contract C +{ + function f(bool x) public pure { x = true; require(x); } +} +// ---- +// Warning: (98-99): Condition is always true. |