summaryrefslogtreecommitdiff
path: root/tests/015-define-object-with-parens.c
AgeCommit message (Collapse)Author
2010-05-14Add some whitespace variations to test 15.Carl Worth
This shows two minor failures in our current parsing (resulting in whitespace-only changes, oso not that significant): 1. We are inserting extra whitespace between tokens not originally separated by whitespace in the replacement list of a macro definition. 2. We are swallowing whitespace separating tokens in the general content.
2010-05-14Add test for an object-like macro with a definition beginning with '('Carl Worth
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.