aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/declspec-17.c
blob: d27faa1b31bcea7ac313c887bddf99fcaa2bb10a (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-errors.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=gnu89 -pedantic-errors" } */

void
f (a, b)
     int; /* { dg-error "empty declaration" } */
     register; /* { dg-error "empty declaration" } */
{
}