PR modula2/115540 gcc/m2/mc-boot-ch/Gtermios.cc error return-statement with a value
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / lookup5.C
blob95af00ffd7afa4aedaf1d666b05384e4da549dd3
1 // { dg-do assemble  }
2 namespace A{
3   void f();
6 namespace B{
7   using namespace A;
8   void f(int);          /* { dg-message "note: declared here" } */
11 using namespace B;
13 void g()
15   ::f();               // { dg-error "" } A::f is not found
18 using namespace A;
20 void g1()
22   ::f();               // ok, it is found now