summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/undeclared-1.c
blob: 5bb7c2a4df900eb99876dca7c3f2a0f57dff8e0d (plain)
1
2
3
4
5
6
7
8
/* 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" } */
{
}