OSDN Git Service

2005-02-15 Eric Christopher <echristo@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / if-mpar.c
1 /* Copyright (C) 2000 Free Software Foundation, Inc.  */
2
3 /* Test various combinations of missing parentheses give the correct
4    missing parenthesis message.  */
5
6 /* { dg-do preprocess } */
7
8 #if (1          /* { dg-error "missing '\\)'" "missing ')' no. 1" } */
9 #endif
10
11 #if 2 * (3 + 4  /* { dg-error "missing '\\)'" "missing ')' no. 2" } */
12 #endif
13
14 #if (2))        /* { dg-error "missing '\\('" "missing '(' no. 1" } */
15 #endif
16
17 #if )           /* { dg-error "missing '\\('" "missing '(' no. 2" } */
18 #endif
19
20 #if 4)          /* { dg-error "missing '\\('" "missing '(' no. 3" } */
21 #endif
22
23 #if (           /* { dg-error "missing '\\)'" "missing ')' no. 3" } */
24 #endif