From 328b826e8a43ed39f9eebb8493cc6abea2ddac1c Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sat, 15 Apr 2017 19:24:13 +0200 Subject: tccpp: Fix corner case of fnlike macro invocation Arg substitution leaves placeholder marker in the stream for empty arguments. Those need to be skipped when searching for a fnlike macro invocation in the replacement list itself. See testcase. --- tests/pp/18.expect | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/pp/18.expect (limited to 'tests/pp/18.expect') diff --git a/tests/pp/18.expect b/tests/pp/18.expect new file mode 100644 index 0000000..447a9b2 --- /dev/null +++ b/tests/pp/18.expect @@ -0,0 +1,3 @@ +X181 1 +X182 0 +X183 yeah -- cgit v1.3.1