FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / trad / maccom2.c
blob331c9fc8c8302a15cfe76532799c17601f173118
1 /* { dg-do preprocess } */
2 /* { dg-options "-CC -traditional-cpp" } */
4 /* This tests to make sure that comments between the #define directive
5 and the macro identifier are ignored (i.e. treated like whitespace)
6 when the -CC option is used.
8 Jason R. Thorpe, 6 Apr 2002 */
10 #define/**/def passed
12 def
15 { dg-final { if ![file exists maccom2.i] { return } } }
16 { dg-final { if { [grep maccom2.i "^passed"] != "" } { return } } }
17 { dg-final { fail "maccom2.c: comment between #define and identifier with -CC" } }