]>
Commit | Line | Data |
---|---|---|
68e6421d JM |
1 | /* Test diagnostic for empty declarations in old-style parameter |
2 | declarations. Test with -pedantic-errors. */ | |
3 | /* Origin: Joseph Myers <joseph@codesourcery.com> */ | |
4 | /* { dg-do compile } */ | |
5 | /* { dg-options "-std=gnu89 -pedantic-errors" } */ | |
6 | ||
7 | void | |
8 | f (a, b) | |
ad0637fd MLI |
9 | int; /* { dg-error "empty declaration" } */ |
10 | register; /* { dg-error "empty declaration" } */ | |
68e6421d JM |
11 | { |
12 | } |