* cppinit.c (cpp_create_reader): Initialize
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / maccom6.c
blob0b86c05c6d69635f05bf6a7ede302678cf8ca8fe
1 /* { dg-do preprocess } */
2 /* { dg-options "-CC" } */
4 /* This tests to make sure that expressions function properly
5 when used with macros containing comments and the -CC option
6 is being used.
8 Jason R. Thorpe, 6 Apr 2002 */
10 #define ONE 1 /* one */
11 #define TWO 2 /* two */
12 #define THREE 3 /* three */
14 #if (ONE + TWO) != THREE
15 failed
16 #else
17 passed
18 #endif
21 { dg-final { if ![file exists maccom6.i] { return } } }
22 { dg-final { if { [grep maccom6.i "^passed"] != "" } { return } } }
23 { dg-final { fail "maccom6.c: comments in macro expressions with -CC" } }