view gcc/testsuite/gcc.dg/declspec-16.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* 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" } */
{
}