repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2013-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend4.C
blob
86ac9156109b65b8a3b2929c8d89158d131ea76c
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
}