gcc/testsuite/gcc.test-framework/dg-error-exp-F.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 () |
| 6 | { /* { dg-error "return type" "warning test" } */ |
| 7 | } /* { dg-error "control reaches end" "warning test" } */ |
| 8 | |
| 9 | main (int argc, char *argv[]) |
| 10 | { /* { dg-error "return type" "warning test" } */ |
| 11 | } /* { dg-error "control reaches end" "warning test" } */ |