diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/eichin01.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.pt/eichin01.C | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/eichin01.C b/gcc/testsuite/g++.old-deja/g++.pt/eichin01.C new file mode 100755 index 0000000..154587b --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/eichin01.C @@ -0,0 +1,27 @@ +// Build don't run: + +/* + + +*/ + + +template <class X> class TC { +public: + X aaa; + static X sss; + TC(X a) { aaa = a; } + TC(X a, X s) { aaa = a; sss = s; } + void sz(X s) { sss = s; } +}; + +float TC<float>::sss; +long TC<long>::sss; + +TC<long> xjj(1,2); + +int main(int,char*) { + TC<float> xff(9.9,3.14); + xjj.sz(123); + xff.sz(2.71828); +} |