From a03913427f08d6c2e185ba7b8e5a0ba7e2e1a25b Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Mon, 12 Jun 2017 14:58:10 +0200 Subject: [PATCH] Add an end-to-end test about LLL macro with zero arguments --- test/liblll/EndToEndTest.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/liblll/EndToEndTest.cpp b/test/liblll/EndToEndTest.cpp index c7c1fd3b4..c511e6f04 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() }