gcc/testsuite/gcc.test-framework/dg-warning-exp-P.c
raw| 1 | /* Test the tester; previously part of gcc.misc-tests/dg-9.c. */ |
| 2 | /* { dg-prms-id 42 } */ |
| 3 | /* { dg-options "-Wall" } */ |
| 4 | |
| 5 | f () { /* { dg-warning "return type" "warning test" } */ |
| 6 | } /* { dg-warning "control reaches end" "warning test" } */ |
| 7 | |
| 8 | main (int argc, char *argv[]) { /* { dg-warning "return type" "warning test" } */ |
| 9 | } /* { dg-warning "control reaches end" "warning test" } */ |