diff options
author | Richard Henderson <rth@cygnus.com> | 1999-05-08 09:39:18 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-05-08 09:39:18 -0700 |
commit | a3af74c453b5e0f3e37ee0f4ec0b621602370735 (patch) | |
tree | 0dda2aff49a83f959deac89ae053c73cb2a2f314 | |
parent | 86efdc8e6d1187677d45e727b8144a421385d28d (diff) | |
download | gcc-a3af74c453b5e0f3e37ee0f4ec0b621602370735.zip gcc-a3af74c453b5e0f3e37ee0f4ec0b621602370735.tar.gz gcc-a3af74c453b5e0f3e37ee0f4ec0b621602370735.tar.bz2 |
p12475.C: Use LONG_MAX to find the constant to test.
* g++.old-deja/g++.benjamin/p12475.C: Use LONG_MAX to find
the constant to test. Don't XFAIL 64-bit targets.
* g++.old-deja/g++.jason/thunk3.C: Don't XFAIL Alpha.
* g++.old-deja/g++.law/profile1.C: Likewise.
* g++.old-deja/g++.other/delete4.C: Define size_t; use it in all
operator new instances.
* g++.old-deja/g++.other/delete5.C: Likewise.
From-SVN: r26840
-rw-r--r-- | gcc/testsuite/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C | 13 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/thunk3.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.law/profile1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/delete4.C | 14 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/delete5.C | 10 |
6 files changed, 39 insertions, 14 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2241186..534572b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,15 @@ +1999-05-08 Richard Henderson <rth@cygnus.com> + + * g++.old-deja/g++.benjamin/p12475.C: Use LONG_MAX to find + the constant to test. Don't XFAIL 64-bit targets. + + * g++.old-deja/g++.jason/thunk3.C: Don't XFAIL Alpha. + * g++.old-deja/g++.law/profile1.C: Likewise. + + * g++.old-deja/g++.other/delete4.C: Define size_t; use it in all + operator new instances. + * g++.old-deja/g++.other/delete5.C: Likewise. + 1999-05-03 Craig Burley <craig@jcb-sc.com> * g77.f-torture/execute/u77-test.f (main): Declare ABORT as diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C b/gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C index 4f9d8b5..6b210f3 100644 --- a/gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C +++ b/gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C @@ -1,5 +1,14 @@ // Build don't link: // prms-id: 12475 -// excess errors test - XFAIL alpha*-*-* mips64*-*-* -enum huh { start =-2147483648, next }; // WARNING - , XFAIL sparc64-*-* alpha*-*-* mips64*-*-* +#include <limits.h> + +#if LONG_MAX == 2147483647 +#define TEST 2147483648 +#elif LONG_MAX == 9223372036854775807 +#define TEST 9223372036854775808 +#else +#error "Unsupported test -- add new constants." +#endif + +enum huh { start =-TEST, next }; // WARNING - diff --git a/gcc/testsuite/g++.old-deja/g++.jason/thunk3.C b/gcc/testsuite/g++.old-deja/g++.jason/thunk3.C index adc6805..66ac8f9 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/thunk3.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/thunk3.C @@ -3,7 +3,7 @@ // support, because it doesn't support variadic functions. // Special g++ Options: -fvtable-thunks -// excess errors test - XFAIL mips*-*-* alpha*-*-* rs6000-*-* powerpc-*-eabi m68k-*-coff m68k-motorola-sysv m88k-motorola-sysv3 +// excess errors test - XFAIL mips*-*-* rs6000-*-* powerpc-*-eabi m68k-*-coff m68k-motorola-sysv m88k-motorola-sysv3 #include <stdarg.h> diff --git a/gcc/testsuite/g++.old-deja/g++.law/profile1.C b/gcc/testsuite/g++.old-deja/g++.law/profile1.C index b26bb02..3c671a2 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/profile1.C +++ b/gcc/testsuite/g++.old-deja/g++.law/profile1.C @@ -1,7 +1,7 @@ // Special g++ Options: -pg // GROUPS passed profiling // Skip if not native -// excess errors test - XFAIL m68k-motorola-sysv m88k-motorola-sysv3 mips*-*-* alpha*-*-* i[3456]86-*-sco3.2v5* +// excess errors test - XFAIL m68k-motorola-sysv m88k-motorola-sysv3 mips*-*-* i[3456]86-*-sco3.2v5* #include <stdio.h> main() { diff --git a/gcc/testsuite/g++.old-deja/g++.other/delete4.C b/gcc/testsuite/g++.old-deja/g++.other/delete4.C index ae98343..74ddcdd 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/delete4.C +++ b/gcc/testsuite/g++.old-deja/g++.other/delete4.C @@ -9,22 +9,24 @@ // specification is `throw()'. All other cases must return a non-null pointer // [expr.new/13]. -void *operator new(unsigned) +typedef __SIZE_TYPE__ size_t; + +void *operator new(size_t) { return 0; // ERROR - cannot return NULL } -void *operator new[](unsigned) +void *operator new[](size_t) { return 0; // ERROR - cannot return NULL } struct X { - void *operator new(unsigned) + void *operator new(size_t) { return 0; // ERROR - cannot return NULL } - void *operator new[](unsigned) + void *operator new[](size_t) { return 0; // ERROR - cannot return NULL } @@ -32,11 +34,11 @@ struct X struct Y { - void *operator new(unsigned) throw() + void *operator new(size_t) throw() { return 0; // ok } - void *operator new[](unsigned) throw() + void *operator new[](size_t) throw() { return 0; // ok } diff --git a/gcc/testsuite/g++.old-deja/g++.other/delete5.C b/gcc/testsuite/g++.old-deja/g++.other/delete5.C index b522e9c..e9cc493 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/delete5.C +++ b/gcc/testsuite/g++.old-deja/g++.other/delete5.C @@ -1,16 +1,18 @@ // Copyright (C) 1999 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 15 Apr 1999 <nathan@acm.org> +typedef __SIZE_TYPE__ size_t; + struct X { int i; X():i(){} - void *operator new(unsigned) + void *operator new(size_t) { return 0; // WARNING - cannot return NULL } - void *operator new[](unsigned) + void *operator new[](size_t) { return 0; // WARNING - cannot return NULL } @@ -21,11 +23,11 @@ struct Y int i; Y():i(){} - void *operator new(unsigned) throw() + void *operator new(size_t) throw() { return 0; // ok } - void *operator new[](unsigned) throw() + void *operator new[](size_t) throw() { return 0; // ok } |