aboutsummaryrefslogtreecommitdiff
path: root/tests/tcctest.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2012-04-16 00:21:40 +0200
committerMichael Matz <matz@suse.de>2012-04-18 20:57:13 +0200
commit4c0d70ab07b4a5a5040e53259f8e9cedd4ec89b2 (patch)
treedd91e5de8da11315ca1d55db52c5ab427989a648 /tests/tcctest.c
parent15f4ac2b1a4453b73904bb2ff4441498d5911a64 (diff)
downloadtinycc-4c0d70ab07b4a5a5040e53259f8e9cedd4ec89b2.tar.gz
tinycc-4c0d70ab07b4a5a5040e53259f8e9cedd4ec89b2.tar.bz2
Fix parsing function macro invocations
If a function macro name is separated from the parentheses in an macro invocation the substitution doesn't take place. Fix this by handling comments.
Diffstat (limited to 'tests/tcctest.c')
-rw-r--r--tests/tcctest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c
index eee7039..eeabb7c 100644
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -288,6 +288,10 @@ comment
/* test function macro substitution when the function name is
substituted */
TEST2();
+
+ /* And again when the name and parenthes are separated by a
+ comment. */
+ TEST2 /* the comment */ ();
}