summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/ns4.C
blob: aabfcfcb7ccfefce3828224c32276d4e2918bf31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR c++/43145
// { dg-do link }

namespace N {
  void f();
}

void N::f()
{
  extern int i;
  extern void g();
  i = 1;
  g();
}

namespace N {
  int i;
  void g() { }
}

int main() { }