From fa31b1a55d74214a793e34a972200e20dc275fb7 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 9 Jun 1998 19:45:30 -0400 Subject: [PATCH] new From-SVN: r20394 --- gcc/testsuite/g++.old-deja/g++.pt/partial2.C | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/partial2.C diff --git a/gcc/testsuite/g++.old-deja/g++.pt/partial2.C b/gcc/testsuite/g++.old-deja/g++.pt/partial2.C new file mode 100644 index 00000000000..99485347b94 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/partial2.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 *-*-* -- 2.30.2