projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db35d55
)
Add test for an object-like macro with a definition beginning with '('
author
Carl Worth
<cworth@cworth.org>
Thu, 13 May 2010 17:26:58 +0000
(10:26 -0700)
committer
Carl Worth
<cworth@cworth.org>
Fri, 14 May 2010 16:20:13 +0000
(09:20 -0700)
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.
tests/015-define-object-with-parens.c
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/015-define-object-with-parens.c
b/tests/015-define-object-with-parens.c
new file mode 100644
(file)
index 0000000..
7dcadfa
--- /dev/null
+++ b/
tests/015-define-object-with-parens.c
@@ -0,0
+1,2
@@
+#define foo ( ) 1
+foo()