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" } */
12 #if ~ /* { dg-error "no right op" "no unary operand" } */
15 #if 3 + * 6 + 4 /* { dg-error "no right op" "no right operand" } */
18 #if 2 ~2 /* { dg-error "missing bin" "no binary operator" } */
21 #if 1 + 2 (3) /* { dg-error "missing bin" "immediate then open paren" } */
24 #if (2) 4 * 2 /* { dg-error "missing bin" "close paren then immediate" } */
27 #if == 2 /* { dg-error "no left op" } */
30 #if (==2) /* { dg-error "no left op" } */