summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp49.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memtemp49.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.pt/memtemp49.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp49.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp49.C
new file mode 100755
index 0000000..f2d610f
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp49.C
@@ -0,0 +1,16 @@
+// Build don't link:
+// GROUPS passed templates membertemplates
+template <class X>
+struct S
+{
+ template <class T>
+ void f(T t1, T t = T())
+ {}
+};
+
+
+void foo()
+{
+ S<int> si;
+ si.f(3);
+}