aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@gmail.com>2016-01-14 09:58:09 +0800
committerLu Guanqun <guanqun.lu@gmail.com>2016-01-15 15:12:23 +0800
commite130bc7e7cc647b15c448133f725a060910da587 (patch)
tree1a9fc6044c17de3d22fb75c64fe70c987f89bc30 /test/libsolidity/SolidityEndToEndTest.cpp
parent02c1aacd25652d39678005294ecbb6180a283134 (diff)
downloaddexon-solidity-e130bc7e7cc647b15c448133f725a060910da587.tar.gz
dexon-solidity-e130bc7e7cc647b15c448133f725a060910da587.tar.zst
dexon-solidity-e130bc7e7cc647b15c448133f725a060910da587.zip
check whether break/continue is in the loop
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index 34c5dffc..3ef5ebbe 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -166,18 +166,6 @@ BOOST_AUTO_TEST_CASE(while_loop)
testSolidityAgainstCppOnRange("f(uint256)", while_loop_cpp, 0, 5);
}
-BOOST_AUTO_TEST_CASE(break_outside_loop)
-{
- // break and continue outside loops should be simply ignored
- char const* sourceCode = "contract test {\n"
- " function f(uint x) returns(uint y) {\n"
- " break; continue; return 2;\n"
- " }\n"
- "}\n";
- compileAndRun(sourceCode);
- testSolidityAgainstCpp("f(uint256)", [](u256 const&) -> u256 { return 2; }, u256(0));
-}
-
BOOST_AUTO_TEST_CASE(nested_loops)
{
// tests that break and continue statements in nested loops jump to the correct place