No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / cpp / trad / assert2.c
blob9838e149cbf0d14eaac6032322cf444a16d589e0
1 /* Malformed assertion tests. */
2 /* { dg-do preprocess } */
4 #assert /* { dg-error "without predicate" "assert w/o predicate" } */
5 #assert % /* { dg-error "an identifier" "assert punctuation" } */
6 #assert 12 /* { dg-error "an identifier" "assert number" } */
7 #assert abc /* { dg-error "missing" "assert w/o answer" } */
9 #if # /* { dg-error "without predicate" "test w/o predicate" } */
10 #endif
12 #if #% /* { dg-error "an identifier" "test punctuation" } */
13 #endif
15 #if #12 /* { dg-error "an identifier" "test number" } */
16 #endif
18 #if #abc
19 #error /* { dg-bogus "error" "test w/o answer" } */
20 #endif
22 #if #abc[def] /* { dg-error "not valid in" "bad syntax" } */
23 #endif