1 /* { dg-do preprocess } */
2 /* { dg-options "-CC" } */
4 /* This tests to make sure that C++ comments are converted to C comments
5 when saved in the macro and copied to the output file when the macro
6 is expanded when the -CC option is used.
8 Jason R. Thorpe, 6 Apr 2002 */
15 /* The + in the regexp prevents it from matching itself. */
16 { dg
-final
{ if ![file exists maccom5
.i
] { return } } }
17 { dg
-final
{ if \
{ [grep maccom5
.i
"p+assed"] != "" \
} \
{ } }
18 { dg
-final
{ if \
{ [grep maccom5
.i
"p+assed:"] == "" \
} \
{ } }
19 { dg
-final
{ return \
} \
} } }
20 { dg
-final
{ fail
"maccom5.c: C++ comment in macro expansion with -CC" } }