diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-06-12 20:47:28 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2017-06-12 21:16:03 +0800 |
commit | b86b084bc68e50ba71ba398c3ecb7ad2c28ececb (patch) | |
tree | bdefa0cff85454a732390ffe7bd6688ca26f5063 | |
parent | 496c2a208ee5d03792e7cde767ecf8dfce860912 (diff) | |
download | dexon-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.cpp | 6 |
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() } |