aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-06-12 20:58:10 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-06-12 21:16:08 +0800
commita03913427f08d6c2e185ba7b8e5a0ba7e2e1a25b (patch)
tree4913313a0f9d7168cbfc7b2234cc19ac88dff9ae /test
parent37a949e634c4d9c47f7dabb579ddcfc23a89b0a6 (diff)
downloaddexon-solidity-a03913427f08d6c2e185ba7b8e5a0ba7e2e1a25b.tar.gz
dexon-solidity-a03913427f08d6c2e185ba7b8e5a0ba7e2e1a25b.tar.zst
dexon-solidity-a03913427f08d6c2e185ba7b8e5a0ba7e2e1a25b.zip
Add an end-to-end test about LLL macro with zero arguments
Diffstat (limited to 'test')
-rw-r--r--test/liblll/EndToEndTest.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/liblll/EndToEndTest.cpp b/test/liblll/EndToEndTest.cpp
index c7c1fd3b..c511e6f0 100644
--- a/test/liblll/EndToEndTest.cpp
+++ b/test/liblll/EndToEndTest.cpp
@@ -279,6 +279,18 @@ BOOST_AUTO_TEST_CASE(assembly_codecopy)
BOOST_CHECK(callFallback() == encodeArgs(string("abcdef")));
}
+BOOST_AUTO_TEST_CASE(zeroarg_macro)
+{
+ char const* sourceCode = R"(
+ (returnlll
+ (seq
+ (def 'zeroarg () (asm INVALID))
+ (zeroarg)))
+ )";
+ compileAndRun(sourceCode);
+ BOOST_CHECK(callFallback() == encodeArgs());
+}
+
BOOST_AUTO_TEST_SUITE_END()
}