New test
authorMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 28 Aug 1998 16:48:44 +0000 (16:48 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 28 Aug 1998 16:48:44 +0000 (16:48 +0000)
From-SVN: r22062

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

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename13.C b/gcc/testsuite/g++.old-deja/g++.pt/typename13.C
new file mode 100644 (file)
index 0000000..48d12e6
--- /dev/null
@@ -0,0 +1,37 @@
+// Build don't link:
+// Special g++ Options:
+// excess errors test - XFAIL *-*-*
+
+template <class T>
+struct B 
+{
+  typedef int I;
+};
+
+
+template <class T>
+struct D : public B<T>
+{
+  void f();
+};
+
+
+template <class T>
+void D<T>::f()
+{
+  I();
+}
+
+
+template <>
+struct B<int> 
+{
+  void I();
+};
+
+
+int main()
+{
+  D<int> di;
+  di.f();
+}