OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Pizza-lize :-)
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend4.C
1
// Copyright (C) 2004 Free Software Foundation
2
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3
// { dg-do compile }
4
5
// Friend name lookup in class defined outside its namespace
6
// (Local class case)
7
8
void f() {
9
class A {
10
class B;
11
class C;
12
};
13
14
class A::B {
15
friend class C;
16
typedef int i;
17
};
18
19
class A::C {
20
A::B::i j;
21
};
22
}