summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t38.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/t38.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/t38.C19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t38.C b/gcc/testsuite/g++.old-deja/g++.pt/t38.C
new file mode 100644
index 000000000..5a9da92f8
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/t38.C
@@ -0,0 +1,19 @@
+// { dg-do assemble }
+// { dg-options "" }
+extern "C" int printf (const char *, ...);
+
+template<class X> struct A {
+ A (int, char);
+ ~A ();
+ A (X *, float);
+};
+
+template<class Y> inline A<Y>::A (int i, char c) {
+ printf ("%d, %d\n", i, c);
+}
+template<class Z> A<Z>::~A() {}
+template<class W> A<W>::A (W * d, float f) {
+ printf ("%x, %e\n", d, f);
+}
+
+A<void> avoid (9, 0);