Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / friend3.C
blob2a58dd8ca057cfd324ec808fbea524eb739b152d
1 // Copyright (C) 2004 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3 // { dg-do compile }
5 // Friend name lookup in class defined outside its namespace
7 namespace A {
8   class B;
9   class C;
12 class A::B {
13   friend class C;
14   typedef int i;
17 class A::C {
18   A::B::i j;