OSDN Git Service

* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ns / lookup5.C
1 // { dg-do assemble  }
2 namespace A{
3   void f();
4 }
5
6 namespace B{
7   using namespace A;
8   void f(int);                  // { dg-error "" } referenced below
9 }
10
11 using namespace B;
12
13 void g()
14 {
15   ::f();               // { dg-error "" } A::f is not found
16 }
17
18 using namespace A;
19
20 void g1()
21 {
22   ::f();               // ok, it is found now
23 }