OSDN Git Service

* gcc.dg/Warray-bounds.c: XFAIL test on 32-bit hppa targets.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / declspec-16.c
1 /* Test diagnostic for empty declarations in old-style parameter
2    declarations.  Test with -pedantic.  */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-std=gnu89 -pedantic" } */
6
7 void
8 f (a, b)
9      int; /* { dg-warning "warning: empty declaration" } */
10      register; /* { dg-warning "warning: empty declaration" } */
11 {
12 }