aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/redecl-20.c
blob: 07f52115ec86e6fcc74c450dea3182a6fe6ed34c (plain)
1
2
3
4
5
6
7
8
9
/* We used to ICE in the gimplifier, PR 107307 */
// { dg-do compile }
// { dg-options "-w" }
void f ()
{
  const struct { int a[1]; } b; // { dg-note "" }
  int *c = b.a;
  int *b; // { dg-error "" }
}