[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / using58.C
blobd04bce1e91fb1ab778469f173a2aa2a73f127f0e
3 void Foo (int);
4 void Foo (double);
6 namespace Y
8   void Baz (int); // { dg-message "previous declaration" }
11 void X ()
13   using ::Foo;
14   extern void Foo (int);
16   using Y::Baz;
17   extern void Baz (int);  // { dg-error "conflicts with" }