Procházet zdrojové kódy

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.
tags/mesa-7.9-rc1
Carl Worth před 15 roky
rodič
revize
67c27afc16
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2
    0
      tests/015-define-object-with-parens.c

+ 2
- 0
tests/015-define-object-with-parens.c Zobrazit soubor

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

Načítá se…
Zrušit
Uložit