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 *-*-*