2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / maccom5.c
blobb01a045e00db8d1943cf7ebbe2bc41ca8f308b53
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 { scan-file maccom5.i "p+assed" } }
17 { dg-final { scan-file-not maccom5.i "p+assed:" } }