undeclared-1.c   [plain text]


/* Test for no ICE with an undeclared identifier in an enum in old-style
   parameter decls.  PR 12560.  */
/* { dg-options "-w" } */

foo(c)
     enum { a = b } c;  /* { dg-error "undeclared|for each" } */
{
}