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
/
eichin01.C
blob
bc3806534a0d7c53ab647f81b8ec765fc65c165c
1
// { dg-do link }
2
3
/*
4
5
6
*/
7
8
9
template <class X> class TC {
10
public:
11
X aaa;
12
static X sss;
13
TC(X a) { aaa = a; }
14
TC(X a, X s) { aaa = a; sss = s; }
15
void sz(X s) { sss = s; }
16
};
17
18
template <> float TC<float>::sss = 0.0;
19
template <> long TC<long>::sss = 0;
20
21
TC<long> xjj(1,2);
22
23
int main(int,char*) {
24
TC<float> xff(9.9,3.14);
25
xjj.sz(123);
26
xff.sz(2.71828);
27
}