Add test for an object-like macro with a definition beginning with '('

Our current parser sees "#define foo (" as an identifier token
followed by a '(' token and parses this as a function-like macro.

That would be correct for "#define foo(" but the preprocessor
specification treats this whitespace as significant here so this test
currently fails.
This commit is contained in:
Carl Worth 2010-05-13 10:26:58 -07:00
parent db35d557a4
commit 67c27afc16

View file

@ -0,0 +1,2 @@
#define foo ( ) 1
foo()