[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / using17.C
blob55875fe9af978894ba2f9c40b9e00c61351b1575
1 // Copyright (C) 2007 Free Software Foundation
2 // Contributed by Ollie Wild <aaw@google.com>
3 // { dg-do compile }
5 namespace M {
6   struct S {}; // { dg-message "candidates are: .struct M::S." "candidate 1" }
9 int S;
10 struct S {}; // { dg-message ".struct S." "candidate 2" }
12 using namespace M;
14 struct S s; // { dg-error "reference to 'S' is ambiguous|invalid type in declaration" }