* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / assert2.c
blobbdbf85d2998024b8b2a3e029815adb812bc1aa37
1 /* Malformed assertion tests. */
2 /* { dg-do preprocess } */
3 /* { dg-options "-fno-show-column" } */
5 #assert /* { dg-error "without predicate" "assert w/o predicate" } */
6 #assert % /* { dg-error "an identifier" "assert punctuation" } */
7 #assert 12 /* { dg-error "an identifier" "assert number" } */
8 #assert abc /* { dg-error "missing" "assert w/o answer" } */
10 #if # /* { dg-error "without predicate" "test w/o predicate" } */
11 #endif
13 #if #% /* { dg-error "an identifier" "test punctuation" } */
14 #endif
16 #if #12 /* { dg-error "an identifier" "test number" } */
17 #endif
19 #if #abc
20 #error /* { dg-bogus "error" "test w/o answer" } */
21 #endif
23 #if #abc[def] /* { dg-error "is not valid" "test with malformed answer" } */
24 #endif