aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2000-06-14 20:14:08 -0400
committerJason Merrill <jason@gcc.gnu.org>2000-06-14 20:14:08 -0400
commitb398ac304cf3499581b18c3a670a5db572fb4a23 (patch)
treefd22b7d9aeefff05491e9193a26c1ded1dce6b2c
parentddc2229625fb1849e3da6352d061d2dcd7b8a162 (diff)
downloadgcc-b398ac304cf3499581b18c3a670a5db572fb4a23.zip
gcc-b398ac304cf3499581b18c3a670a5db572fb4a23.tar.gz
gcc-b398ac304cf3499581b18c3a670a5db572fb4a23.tar.bz2
more 16-bit/h8300 tweaks
From-SVN: r34560
-rw-r--r--gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C12
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bugs/900227_01.C6
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/attrib5.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/thunk3.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/crash18.C1
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/static6.C1
6 files changed, 12 insertions, 12 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C b/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C
index afc7060..482150b 100644
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C
+++ b/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C
@@ -2,6 +2,7 @@
//test for bools with inclusive ors
#include <assert.h>
+#include <limits.h>
void bar ( bool x ) {};
void bars ( short x ) {};
@@ -45,12 +46,14 @@ int ors(){
}
+#if INT_MAX > 32767
int orus(){
unsigned short y = 1;
bars ( y );
int blob = ( 65539 | int (y) );
return blob; //expect 65539, will be 3 if done in us type
}
+#endif
int main() {
int tmp;
@@ -66,11 +69,10 @@ int main() {
assert (tmp ==27);
tmp = ors();
assert (tmp ==27);
- if (sizeof (int) > 2 && sizeof (int) > sizeof (unsigned short))
- {
- tmp = orus();
- assert (tmp == 65539);
- }
+#if INT_MAX > 32767
+ tmp = orus();
+ assert (tmp == 65539);
+#endif
return 0;
}
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900227_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900227_01.C
index 4eaf415..51bd60a 100644
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900227_01.C
+++ b/gcc/testsuite/g++.old-deja/g++.bugs/900227_01.C
@@ -30,13 +30,9 @@
// Special g++ Options:
-#include <limits.h>
-
int main ();
-#if INT_MAX > 32767
-short s = (short) &main; // WARNING - small integer
-#endif
+short s = (short) &main; // WARNING - small integer XFAIL h8*-*-*
char c = (char) &main; // WARNING - small integer
int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C
index 7fecbaa..62f35e8 100644
--- a/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C
@@ -1,5 +1,5 @@
// Test that attributes weak and alias coexist.
-// excess errors test - XFAIL alpha*-dec-osf* *-hms
+// excess errors test - XFAIL alpha*-dec-osf* *-*-hms
extern "C" {
void f () __attribute__((weak, alias ("_f")));
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/thunk3.C b/gcc/testsuite/g++.old-deja/g++.jason/thunk3.C
index 4cec694..79c0bd9 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*-*-* rs6000-*-* powerpc-*-eabi m68k-*-coff m68k-motorola-sysv m88k-motorola-sysv3 mn10300-*-* mn10200-*-* v850-*-* sh-*-* h8*
+// excess errors test - XFAIL mips*-*-* rs6000-*-* powerpc-*-eabi m68k-*-coff m68k-motorola-sysv m88k-motorola-sysv3 mn10300-*-* mn10200-*-* v850-*-* sh-*-* h8*-*-*
#include <stdarg.h>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash18.C b/gcc/testsuite/g++.old-deja/g++.other/crash18.C
index 789e316..c6261c8 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/crash18.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/crash18.C
@@ -1,6 +1,7 @@
// Build don't link:
// Special g++ Options: -fvtable-gc
// Origin: Mark Mitchell <mitchell@codesourcery.com>
+// excess errors test - XFAIL *-*-coff *-*-aout *-*-hms
struct S {
virtual void f ();
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/static6.C b/gcc/testsuite/g++.old-deja/g++.pt/static6.C
index c52c3cb..b433e3e 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/static6.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/static6.C
@@ -1,4 +1,5 @@
// Build don't run:
+// excess errors test - XFAIL *-*-aout *-*-coff *-*-hpux* alpha*-dec-osf* *-*-hms
// Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>