Merged with mainline at revision 126229.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / using17.C
blobb98b21a0cda135147638718966bdb1eb93a5e51b
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-error "struct M::S" "candidate 2" }
9 int S;
10 struct S {}; // { dg-error "candidates are: struct S" "candidate 1" }
12 using namespace M;
14 struct S s; // { dg-error "reference to 'S' is ambiguous|invalid type in declaration" "" }