1 /* { dg-do compile } */
2 /* { dg-options "-Wall" } */
10 } /* { dg-warning "control reaches end of non-void\[^\n\r\]*-Wreturn-type" } */
16 } /* { dg-warning "no return statement in function\[^\n\r\]*-Wreturn-type" } */
21 return 1; /* { dg-error "with a value,\[^\n\r\]*-Wreturn-mismatch" } */
33 return; /* { dg-error "with no value,\[^\n\r\]*Wreturn-mismatch" } */
39 return f1 (); /* { dg-error "void value not ignored as it ought to be" } */
40 } /* { dg-warning "control reaches end of non-void\[^\n\r\]*-Wreturn-type" } */