New test.
authorMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 26 Mar 1998 14:22:54 +0000 (14:22 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 26 Mar 1998 14:22:54 +0000 (14:22 +0000)
From-SVN: r18847

gcc/testsuite/g++.old-deja/g++.pt/typedef2.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typedef2.C b/gcc/testsuite/g++.old-deja/g++.pt/typedef2.C
new file mode 100644 (file)
index 0000000..18802fc
--- /dev/null
@@ -0,0 +1,20 @@
+// Build don't link:
+
+typedef const int cint;
+
+template<class T>
+class A
+{
+public:
+  T f(cint i);
+};
+
+template <class T>
+T A<T>::f(cint i)
+{
+}
+
+int main()
+{
+  A<int> a;
+}