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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
friend6.C
blob
8bb5e022440523b1e6afd2b03b00c8b641c38968
1
// { dg-do run }
2
template <class T>
3
void f(T);
4
5
class C
6
{
7
template <class T>
8
friend void f(T)
9
{
10
C c;
11
c.i = 3;
12
}
13
14
public:
15
16
void g()
17
{
18
f(3.0);
19
}
20
21
int i;
22
};
23
24
int main()
25
{
26
f(7);
27
C c;
28
c.g();
29
}