1 /* Copyright (C) 2000 Free Software Foundation, Inc.  */
2 
3 /* { dg-do preprocess } */
4 
5 /* Source: Neil Booth.  */
6 
7 /* Various illegal expressions with missing components.  */
8 
9 #if		/* { dg-error "no expression" "empty #if" } */
10 #endif
11 
12 #if ~		/* { dg-error "no right op" "no unary operand" } */
13 #endif
14 
15 #if 3 + * 6 + 4  /* { dg-error "no right op" "no right operand" } */
16 #endif
17 
18 #if 2 ~2	/* { dg-error "missing bin" "no binary operator" } */
19 #endif
20 
21 #if 1 + 2 (3)   /* { dg-error "missing bin" "immediate then open paren" } */
22 #endif
23 
24 #if (2) 4 * 2  /* { dg-error "missing bin" "close paren then immediate" } */
25 #endif
26 
27 #if == 2  /* { dg-error "no left op" } */
28 #endif
29 
30 #if (==2)  /* { dg-error "no left op" } */
31 #endif
32