(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
redecl-18.c
       1  /* Test redeclaration in an inner scope, with an incomplete type, of a
       2     file-scope initialized array shadowed in an intermediate scope (bug
       3     88584).  */
       4  /* { dg-do compile } */
       5  /* { dg-options "" } */
       6  
       7  int a[1] = { 0 };
       8  
       9  void
      10  f (void)
      11  {
      12    int a;
      13    {
      14      extern int a[];
      15      sizeof (a); /* { dg-error "incomplete" } */
      16    }
      17  }