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
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
friend16.C
1
// { dg-do assemble }
2
3
template <class T>
4
class S2
5
{
6
public:
7
static void f();
8
};
9
10
11
template <class U>
12
class S1
13
{
14
template <class T>
15
friend class S2;
16
17
static int i;
18
};
19
20
21
template <class T>
22
void S2<T>::f()
23
{
24
S1<T>::i = 3;
25
}
26
27
void g()
28
{
29
S2<double>::f();
30
S2<char>::f();
31
}