FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / maccom3.c
blob198453575b3240bfbc8eb0cafdb8bf72fe69672a
1 /* { dg-do preprocess } */
2 /* { dg-options "-CC" } */
4 /* This tests to make sure that comments in the definition of a macro
5 parameter list are ignored when the -CC option is used.
7 Jason R. Thorpe, 6 Apr 2002 */
9 #define def(x /**/, y) passed
11 def(x,y)
14 { dg-final { if ![file exists maccom3.i] { return } } }
15 { dg-final { if { [grep maccom3.i "^passed"] != "" } { return } } }
16 { dg-final { fail "maccom3.c: comment in macro parameter list with -CC" } }