aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SMTChecker.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/test/libsolidity/SMTChecker.cpp b/test/libsolidity/SMTChecker.cpp
index 9d014125..9fbab03a 100644
--- a/test/libsolidity/SMTChecker.cpp
+++ b/test/libsolidity/SMTChecker.cpp
@@ -362,18 +362,15 @@ BOOST_AUTO_TEST_CASE(constant_condition)
}
)";
CHECK_WARNING(text, "Condition is always false");
-// TODO
-// // a plain literal constant is fine
-// text = R"(
-// contract C {
-// function f(uint x) public pure {
-// if (true) { revert(); }
-// }
-// }
-// )";
-// CHECK_SUCCESS_NO_WARNINGS(text);
-
-// TODO test unreacheable code
+ // a plain literal constant is fine
+ text = R"(
+ contract C {
+ function f(uint) public pure {
+ if (true) { revert(); }
+ }
+ }
+ )";
+ CHECK_SUCCESS_NO_WARNINGS(text);
}
BOOST_AUTO_TEST_SUITE_END()