Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / lookup / friend4.C
blob86ac9156109b65b8a3b2929c8d89158d131ea76c
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
6 // (Local class case)
8 void f() {
9   class A {
10     class B;
11     class C;
12   };
14   class A::B {
15     friend class C;
16     typedef int i;
17   };
19   class A::C {
20     A::B::i j;
21   };