aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t20.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/t20.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/t20.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t20.C b/gcc/testsuite/g++.old-deja/g++.pt/t20.C
new file mode 100644
index 00000000000..07a86fa2d6e
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/t20.C
@@ -0,0 +1,15 @@
+// Build don't link:
+
+template <class X> class A {
+public:
+ X aaa;
+ int foo();
+};
+
+template <class X> A<X> f(X);
+
+void frep() {
+ int x;
+ x = f(6.4).foo();
+}
+