summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/linkage7.C
blob: d1470a9ed025694c0db2d1b54f09531763b2342c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do link  }
// Origin: Mark Mitchell <mark@codesourcery.com>

namespace N {
  extern "C" int i;

  void f () {
    i = 3;
  }
}

int i;

int main () { N::f (); }