aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-06-12 20:47:28 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-06-12 21:16:03 +0800
commitb86b084bc68e50ba71ba398c3ecb7ad2c28ececb (patch)
treebdefa0cff85454a732390ffe7bd6688ca26f5063
parent496c2a208ee5d03792e7cde767ecf8dfce860912 (diff)
downloaddexon-solidity-b86b084bc68e50ba71ba398c3ecb7ad2c28ececb.tar.gz
dexon-solidity-b86b084bc68e50ba71ba398c3ecb7ad2c28ececb.tar.zst
dexon-solidity-b86b084bc68e50ba71ba398c3ecb7ad2c28ececb.zip
Add a test that fails about an LLL macro with no arguments
-rw-r--r--test/liblll/Parser.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/liblll/Parser.cpp b/test/liblll/Parser.cpp
index 0d5d9ea5..ff73c348 100644
--- a/test/liblll/Parser.cpp
+++ b/test/liblll/Parser.cpp
@@ -174,6 +174,12 @@ BOOST_AUTO_TEST_CASE(list)
BOOST_CHECK(!successParse("()"));
}
+BOOST_AUTO_TEST_CASE(macro_with_zero_args)
+{
+ char const* text = "(def 'zeroargs () (asm INVALID))";
+ BOOST_CHECK(successParse(text));
+}
+
BOOST_AUTO_TEST_SUITE_END()
}