summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp43.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memtemp43.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/memtemp43.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp43.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp43.C
new file mode 100644
index 000000000..417317118
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp43.C
@@ -0,0 +1,16 @@
+// { dg-do link }
+// GROUPS passed templates membertemplates
+template<class T, int N>
+class A
+{
+public:
+ template<class U>
+ void operator=(A<U, N> const & a) { return; }
+};
+
+int main()
+{
+ A<float, 3> a;
+ A<double, 3> b;
+ a = b;
+}