diff options
author | Carl Worth <cworth@cworth.org> | 2010-05-13 10:26:58 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-05-14 09:20:13 -0700 |
commit | 67c27afc168f85ce6dc66820db864aaaef67f8ed (patch) | |
tree | 135277b6c2df578b4775e76c351cb64ccf9af945 | |
parent | db35d557a40b9fb56483f77da2fb98f541808dd0 (diff) |
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.
-rw-r--r-- | tests/015-define-object-with-parens.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/015-define-object-with-parens.c b/tests/015-define-object-with-parens.c new file mode 100644 index 0000000000..7dcadfa24f --- /dev/null +++ b/tests/015-define-object-with-parens.c @@ -0,0 +1,2 @@ +#define foo ( ) 1 +foo() |