From: Jason Merrill Date: Thu, 23 Jul 1998 18:05:41 +0000 (-0400) Subject: x X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a38fe5356df7d7b1a551a01e934139b5f14a07e4;p=gcc.git x From-SVN: r21351 --- diff --git a/gcc/testsuite/g++.old-deja/g++.other/partspec1.C b/gcc/testsuite/g++.old-deja/g++.other/partspec1.C deleted file mode 100644 index 99485347b94..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/partspec1.C +++ /dev/null @@ -1,23 +0,0 @@ -// 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 *-*-* diff --git a/gcc/testsuite/g++.old-deja/g++.pt/array1.C b/gcc/testsuite/g++.old-deja/g++.pt/array1.C new file mode 100644 index 00000000000..436b4efaf77 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/array1.C @@ -0,0 +1,10 @@ +template + unsigned size(T (&)[N]) { return N; } +template + unsigned size(T const (&)[N]) { return N; } + +main() { + short iarray[] = { 1, 2, 3, 4, 5 }; + const short carray[] = { 1, 2, 3, 4, 5 }; + return size(iarray) - size(carray); +} diff --git a/gcc/testsuite/g++.old-deja/g++.pt/virtual1.C b/gcc/testsuite/g++.old-deja/g++.pt/virtual1.C new file mode 100644 index 00000000000..efa97b7f41b --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/virtual1.C @@ -0,0 +1,6 @@ + struct V { virtual ~V() {} }; + template struct A : virtual V { }; + template struct B { + virtual void f() { T foo; } + }; + int main() { B< A > bar; }