1 /* Test the tester. */ 2 /* { dg-prms-id 42 } */ 3 /* { dg-options "-Wall" } */ 4 5 f () 6 { /* { dg-warning "return type" "warning test" } */ 7 } /* { dg-warning "control reaches end" "warning test" } */ 8 9 main (int argc, char *argv[]) 10 { /* { dg-warning "return type" "warning test" } */ 11 +; /* { dg-error "parse" "error test" } */ 12 /* { dg-bogus "foobar" "bogus fail test" } */ 13 14 return a; /* { dg-bogus "undeclared|identifier|appears" "bogus pass test" { xfail *-*-* } } */ 15 } /* { dg-warning "control reaches end" "warning test" } */ 16