aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_while.sol
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-10-10 20:31:49 +0800
committerLeonardo Alt <leo@ethereum.org>2018-10-15 21:11:21 +0800
commite4851cf59eed8d39a4b95e1ce8181b52e5c66d78 (patch)
treea1f3be719b94b81608ff4bc7c20f0b93b6090c36 /test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_while.sol
parent88b1558862602049261b8530c6c7edcd23b96eb7 (diff)
downloaddexon-solidity-e4851cf59eed8d39a4b95e1ce8181b52e5c66d78.tar.gz
dexon-solidity-e4851cf59eed8d39a4b95e1ce8181b52e5c66d78.tar.zst
dexon-solidity-e4851cf59eed8d39a4b95e1ce8181b52e5c66d78.zip
[SMTChecker] Inline calls to internal functions
Diffstat (limited to 'test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_while.sol')
-rw-r--r--test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_while.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_while.sol b/test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_while.sol
new file mode 100644
index 00000000..66396dd8
--- /dev/null
+++ b/test/libsolidity/smtCheckerTests/functions/functions_trivial_condition_while.sol
@@ -0,0 +1,8 @@
+pragma experimental SMTChecker;
+
+contract C
+{
+ function f(bool x) public pure { require(x); while (x) {} }
+}
+// ----
+// Warning: (99-100): While loop condition is always true.