FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / maccom4.c
blobb8a136ff02e7883a9af351e7d737a5cceb192959
1 /* { dg-do preprocess } */
2 /* { dg-options "-CC" } */
4 /* This tests to make sure the comment is saved in the macro and copied
5 to the output file when the macro is expanded when the -CC option is
6 used.
8 Jason R. Thorpe, 6 Apr 2002 */
10 #define def /* passed */
12 def
15 /* The + in the regexp prevents it from matching itself. */
16 { dg-final { if ![file exists maccom4.i] { return } } }
17 { dg-final { if { [grep maccom4.i "p+assed"] != "" } { return } } }
18 { dg-final { fail "maccom4.c: comment in macro expansion with -CC" } }