summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/eichin01.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/eichin01.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/eichin01.C27
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 100644
index 000000000..435fecd64
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/eichin01.C
@@ -0,0 +1,27 @@
+// { dg-do link }
+
+/*
+
+
+*/
+
+
+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; }
+};
+
+template <> float TC<float>::sss = 0.0;
+template <> long TC<long>::sss = 0;
+
+TC<long> xjj(1,2);
+
+int main(int,char**) {
+ TC<float> xff(9.9,3.14);
+ xjj.sz(123);
+ xff.sz(2.71828);
+}