summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp64.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp64.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/memtemp64.C21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp64.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp64.C
new file mode 100755
index 0000000..6185d3d
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp64.C
@@ -0,0 +1,21 @@
+// Build don't link:
+
+template <class T>
+struct S1 {};
+
+template <class T>
+void f(T);
+
+template <class C>
+struct S2
+{
+ template <class T>
+ void f<S1<T> >(T) {} // ERROR - bad specialization.
+};
+
+
+template <class T>
+struct S3
+{
+ friend class S2<T>;
+};