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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
friend14.C
blob
69491fadf7e482ebde98943746d67948128d951a
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
}