summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp59.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp59.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/memtemp59.C22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp59.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp59.C
new file mode 100755
index 0000000..fbdc0d8
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp59.C
@@ -0,0 +1,22 @@
+// Build don't link:
+// GROUPS passed templates membertemplates
+template <int N>
+struct IndexPlaceholder {};
+
+template <int N1, int N2, int N3>
+struct ArrayIndexMapping {};
+
+template <class T_numtype, int N_rank>
+struct Array
+{
+ template<int N0, int N1>
+ ArrayIndexMapping<N_rank, N0, N1>
+ f(IndexPlaceholder<N0>, IndexPlaceholder<N1>);
+};
+
+
+template <class T_numtype>
+void foo(T_numtype)
+{
+ Array<T_numtype, 1> t;
+}