summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wshadow-2.c
blob: b0c051271eed7d1ac9e5b046679388eabf481d17 (plain)
1
2
3
4
5
6
7
8
9
10
/* Bogus warning for a double declaration of the same extern variable,
   first at file scope, then at block scope.  PR 13129.  */

/* { dg-options "-Wshadow" } */

extern struct foo bar;
void dummy()
{
  extern struct foo bar;  /* { dg-bogus "shadows" } */
}