1 /* Malformed assertion tests. */ 2 /* { dg-do preprocess } */ 3 /* { dg-options "-fshow-column -Wno-deprecated" } */ 4 5 #assert /* { dg-error "without predicate" "assert w/o predicate" } */ 6 #assert % /* { dg-error "9:an identifier" "assert punctuation" } */ 7 #assert 12 /* { dg-error "9:an identifier" "assert number" } */ 8 #assert abc /* { dg-error "9:missing" "assert w/o answer" } */ 9 10 #if # /* { dg-error "without predicate" "test w/o predicate" } */ 11 #endif 12 13 #if #% /* { dg-error "6:an identifier" "test punctuation" } */ 14 #endif 15 16 #if #12 /* { dg-error "6:an identifier" "test number" } */ 17 #endif 18 19 #if #abc 20 #error /* { dg-bogus "error" "test w/o answer" } */ 21 #endif 22 23 #if #abc[def] /* { dg-error "9:is not valid" "test with malformed answer" } */ 24 #endif 25