OSDN Git Service

* name-lookup.c (current_decl_namespace): Non-static.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lookup / ns4.C
1 // { dg-do link }
2
3 namespace N {
4   void f();
5 }
6
7 void N::f()
8 {
9   extern int i;
10   extern void g();
11   i = 1;
12   g();
13 }
14
15 namespace N {
16   int i;
17   void g() { }
18 }
19
20 int main() { }