Debian Codegraph @

gcc/testsuite/g++.dg/lookup/friend3.C

raw
1 // Copyright (C) 2004 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <[email protected]>
3 // { dg-do compile }
4
5 // Friend name lookup in class defined outside its namespace
6
7 namespace A {
8 class B;
9 class C;
10 }
11
12 class A::B {
13 friend class C;
14 typedef int i;
15 };
16
17 class A::C {
18 A::B::i j;
19 };