summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/decl-6.c
blob: 0fd45d3c68ffad8a1735046c442c3cfa8e6790c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */

extern int var;

int foo1(void)
{
  extern int var;

  var += 1;
}

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