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