From: Alexandre Oliva Date: Thu, 9 Jul 1998 20:56:44 +0000 (+0000) Subject: From Alexandre Oliva X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2538118776c80e94aa8182c6741a69628d27da6d;p=gcc.git From Alexandre Oliva * g++.old-deja/g++.other/partspec1.C: test matching of partial specialization with typedef'ed names used as array indexes. From-SVN: r21040 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4a0a6849518..55b720f36d0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 9 22:44:49 1998 Alexandre Oliva + + * g++.old-deja/g++.other/partspec1.C: test matching of partial + specialization with typedef'ed names used as array indexes. + Thu Jul 9 00:38:51 1998 Jeffrey A Law (law@cygnus.com) * gcc.dg/980709-1.c: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.other/partspec1.C b/gcc/testsuite/g++.old-deja/g++.other/partspec1.C new file mode 100644 index 00000000000..99485347b94 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/partspec1.C @@ -0,0 +1,23 @@ +// Build don't link: +// Tests partial specialization +template struct foo1 {}; +template struct foo1; +foo1 bar1; +foo1 baz1; // ERROR - incomplete type + +template struct foo2 {}; +template struct foo2; +foo2 bar2; +foo2 baz2; // ERROR - incomplete type + +typedef unsigned int other1_t; +template struct foo3 {}; +template struct foo3; +foo3 bar3; +foo3 baz3; // ERROR - incomplete type - XFAIL *-*-* + +typedef int other2_t; +template struct foo4 {}; +template struct foo4; +foo4 bar4; +foo4 baz4; // ERROR - incomplete type - XFAIL *-*-*