Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / if-mpar.c
blobb57b5d189ab2837a4da77a9bd705abeaf53dd70f
1 /* Copyright (C) 2000 Free Software Foundation, Inc. */
3 /* Test various combinations of missing parentheses give the correct
4 missing parenthesis message. */
6 /* { dg-do preprocess } */
8 #if (1 /* { dg-error "missing '\\)'" "missing ')' no. 1" } */
9 #endif
11 #if 2 * (3 + 4 /* { dg-error "missing '\\)'" "missing ')' no. 2" } */
12 #endif
14 #if (2)) /* { dg-error "missing '\\('" "missing '(' no. 1" } */
15 #endif
17 #if ) /* { dg-error "missing '\\('" "missing '(' no. 2" } */
18 #endif
20 #if 4) /* { dg-error "missing '\\('" "missing '(' no. 3" } */
21 #endif