mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 20:30:42 +02:00
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:
parent
db35d557a4
commit
67c27afc16
1 changed files with 2 additions and 0 deletions
2
tests/015-define-object-with-parens.c
Normal file
2
tests/015-define-object-with-parens.c
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define foo ( ) 1
|
||||
foo()
|
||||
Loading…
Add table
Reference in a new issue