Add an end-to-end test about LLL macro with zero arguments

This commit is contained in:
Yoichi Hirai 2017-06-12 14:58:10 +02:00
parent 37a949e634
commit a03913427f
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

View File

@ -279,6 +279,18 @@ BOOST_AUTO_TEST_CASE(assembly_codecopy)
BOOST_CHECK(callFallback() == encodeArgs(string("abcdef"))); 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() BOOST_AUTO_TEST_SUITE_END()
} }