Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / cpp / if-mpar.c
blobdf200bbbab4615b31d6caca258f9a874d59a8edd
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
23 #if ( /* { dg-error "missing '\\)'" "missing ')' no. 3" } */
24 #endif