decl-6.c   [plain text]


/* { dg-do compile } */

extern int var;

int foo1(void)
{
  extern int var;

  var += 1;
}

int foo2(void)
{
  var += 1;
}