From: Mark Mitchell Date: Fri, 28 Aug 1998 16:48:44 +0000 (+0000) Subject: New test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=541be14b8aabcb759e6670bcaf49c3a0d705a30c;p=gcc.git New test From-SVN: r22062 --- 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 index 00000000000..48d12e6351e --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/typename13.C @@ -0,0 +1,37 @@ +// Build don't link: +// Special g++ Options: +// excess errors test - XFAIL *-*-* + +template +struct B +{ + typedef int I; +}; + + +template +struct D : public B +{ + void f(); +}; + + +template +void D::f() +{ + I(); +} + + +template <> +struct B +{ + void I(); +}; + + +int main() +{ + D di; + di.f(); +}