* cppinit.c (cpp_create_reader): Initialize
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / maccom5.c
blobf92f8bfe0f83d1677dc488f760e14b81de92e3cf
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 */
10 #define def // passed
12 def:
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" } }