Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / cpp / if-mop.c
blob119c7392e06caa5cf14e23442f259ec9ef405599
1 /* Copyright (C) 2000 Free Software Foundation, Inc. */
3 /* { dg-do preprocess } */
5 /* Source: Neil Booth. */
7 /* Various illegal expressions with missing components. */
9 #if /* { dg-error "no expression" "empty #if" } */
10 #endif
12 #if ~ /* { dg-error "no right op" "no unary operand" } */
13 #endif
15 #if 3 + * 6 + 4 /* { dg-error "no right op" "no right operand" } */
16 #endif
18 #if 2 ~2 /* { dg-error "missing bin" "no binary operator" } */
19 #endif
21 #if 1 + 2 (3) /* { dg-error "missing bin" "immediate then open paren" } */
22 #endif
24 #if (2) 4 * 2 /* { dg-error "missing bin" "close paren then immediate" } */
25 #endif
27 #if == 2 /* { dg-error "no left op" } */
28 #endif
30 #if (==2) /* { dg-error "no left op" } */
31 #endif