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
* treelang/compile/var_defs.tree: Adjust.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
eichin01.C
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
}