OSDN Git Service

PR tree-optimization/52019
[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 #if (1          /* { dg-error "5:missing '\\)'" "missing ')' no. 1" } */
8 #endif
9
10 #if 2 * (3 + 4  /* { dg-error "9:missing '\\)'" "missing ')' no. 2" } */
11 #endif
12
13 #if (2))        /* { dg-error "8:missing '\\('" "missing '(' no. 1" } */
14 #endif
15
16 #if )           /* { dg-error "5:missing '\\('" "missing '(' no. 2" } */
17 #endif
18
19 #if 4)          /* { dg-error "6:missing '\\('" "missing '(' no. 3" } */
20 #endif
21
22 #if (           /* { dg-error "5:missing '\\)'" "missing ')' no. 3" } */
23 #endif
24
25 #if ((2 + 3) + 5 /* { dg-error "5:missing '\\)'" "missing ')' no. 3" } */
26 #endif
27
28 #if ((2 + 3 + 5 /* { dg-error "6:missing '\\)'" "missing ')' no. 3" } */
29 #endif