blob: 598623930a2faf7dae624cb7dcb66eb1eca8babc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* Test diagnostic for empty declarations in old-style parameter
declarations. Test with -pedantic. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=gnu89 -pedantic" } */
void
f (a, b)
int; /* { dg-warning "empty declaration" } */
register; /* { dg-warning "empty declaration" } */
{
}
|