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
/
friend18.C
1
// { dg-do assemble }
2
3
template <class U>
4
class S1
5
{
6
template <class T>
7
friend class S2;
8
9
static int i;
10
};
11
12
13
template <class T>
14
class S2
15
{
16
public:
17
static void f() { S1<T>::i = 3; }
18
};
19
20
21
void g()
22
{
23
S2<double>::f();
24
S2<long>::f();
25
}
26