summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp40.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp40.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/memtemp40.C21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp40.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp40.C
new file mode 100755
index 0000000..70506f0
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp40.C
@@ -0,0 +1,21 @@
+// Build don't link:
+// GROUPS passed templates membertemplates
+template <class T>
+struct R
+{
+ template <class U>
+ void g(U u) {}
+};
+
+template <class T>
+struct S
+{
+ template <class U>
+ void f(U u) { R<T> r; r.g(u); }
+};
+
+void foo()
+{
+ S<int> si;
+ si.f("abc");
+}