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