gcc/testsuite/gcc.dg/declspec-16.c
raw| 1 | /* Test diagnostic for empty declarations in old-style parameter |
| 2 | declarations. Test with -pedantic. */ |
| 3 | /* Origin: Joseph Myers <[email protected]> */ |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-options "-std=gnu89 -pedantic" } */ |
| 6 | |
| 7 | void |
| 8 | f (a, b) |
| 9 | int; /* { dg-warning "empty declaration" } */ |
| 10 | register; /* { dg-warning "empty declaration" } */ |
| 11 | { |
| 12 | } |