rt_gccstream/gcc/testsuite/gcc.dg/declspec-15.c

13 lines
354 B
C

/* Test diagnostic for empty declarations in old-style parameter
declarations. Test with no special options. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=gnu89" } */
void
f (a, b)
int; /* { dg-warning "empty declaration" } */
register; /* { dg-warning "empty declaration" } */
{
}