From b86b084bc68e50ba71ba398c3ecb7ad2c28ececb Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Mon, 12 Jun 2017 14:47:28 +0200 Subject: Add a test that fails about an LLL macro with no arguments --- test/liblll/Parser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/liblll') 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() } -- cgit