From 4c0d70ab07b4a5a5040e53259f8e9cedd4ec89b2 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 16 Apr 2012 00:21:40 +0200 Subject: 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. --- tests/tcctest.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/tcctest.c') 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 */ (); } -- cgit v1.3.1