aboutsummaryrefslogtreecommitdiffstats
path: root/test/liblll/EndToEndTest.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-01-12 22:52:01 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-01-12 22:52:01 +0800
commit0cb95ac35e4ae2ce1b9f929c00a2aed282bd4a70 (patch)
tree9074bf3487eb97271f7ae80887e55da5f17852fc /test/liblll/EndToEndTest.cpp
parent4713dd625df08fe6a5fe9cd29febcc225951c36d (diff)
downloaddexon-solidity-0cb95ac35e4ae2ce1b9f929c00a2aed282bd4a70.tar.gz
dexon-solidity-0cb95ac35e4ae2ce1b9f929c00a2aed282bd4a70.tar.zst
dexon-solidity-0cb95ac35e4ae2ce1b9f929c00a2aed282bd4a70.zip
LLL: add test for (panic) in a sequence
Diffstat (limited to 'test/liblll/EndToEndTest.cpp')
-rw-r--r--test/liblll/EndToEndTest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/liblll/EndToEndTest.cpp b/test/liblll/EndToEndTest.cpp
index 77c1f740..c7c1fd3b 100644
--- a/test/liblll/EndToEndTest.cpp
+++ b/test/liblll/EndToEndTest.cpp
@@ -50,6 +50,13 @@ BOOST_AUTO_TEST_CASE(bare_panic)
BOOST_REQUIRE(m_output.empty());
}
+BOOST_AUTO_TEST_CASE(panic)
+{
+ char const* sourceCode = "{ (panic) }";
+ compileAndRunWithoutCheck(sourceCode);
+ BOOST_REQUIRE(m_output.empty());
+}
+
BOOST_AUTO_TEST_CASE(exp_operator_const)
{
char const* sourceCode = R"(