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
new
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
friend7.C
1
template <class T>
2
void f(T);
3
4
template <class U>
5
class C
6
{
7
template <class T>
8
friend void f(T);
9
10
int i;
11
};
12
13
14
template <class T>
15
void f(T)
16
{
17
C<T> c;
18
c.i = 3;
19
}
20
21
22
int main()
23
{
24
f(7);
25
}