aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1998-09-15 12:17:46 -0700
committerRichard Henderson <rth@gcc.gnu.org>1998-09-15 12:17:46 -0700
commitdfb16e8307d6ca6f9ddf22dea3400324355a60a7 (patch)
treead817c9bbdb0c97ee4f96b640feeddf495c2542a /gcc
parentc9f81ec25b3f1914d082e12d117efda4d76c130b (diff)
downloadgcc-dfb16e8307d6ca6f9ddf22dea3400324355a60a7.zip
gcc-dfb16e8307d6ca6f9ddf22dea3400324355a60a7.tar.gz
gcc-dfb16e8307d6ca6f9ddf22dea3400324355a60a7.tar.bz2
array1.C: Size array via arithmetic based on the native word size instead of an integer...
* g++.old-deja/g++.brendan/array1.C: Size array via arithmetic based on the native word size instead of an integer literal. From-SVN: r22435
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/array1.C4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9f8429d..07ebd8f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+1998-09-16 Richard Henderson <rth@cygnus.com>
+
+ * g++.old-deja/g++.brendan/array1.C: Size array via arithmetic based
+ on the native word size instead of an integer literal.
+
1998-09-15 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.other/static2.C: invocation of static data
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/array1.C b/gcc/testsuite/g++.old-deja/g++.brendan/array1.C
index 6492463..1812958 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/array1.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/array1.C
@@ -1,7 +1,7 @@
// Build don't link:
// Special g++ Options: -fconserve-space -fcommon
// GROUPS passed array-bindings
-// excess errors test - XFAIL sparc64-*-*
+
extern "C" void printf (char *, ...);
-char array[(unsigned) 0x90000000];// ERROR - overflow in array dimension.* , XFAIL sparc64-*-* alpha*-*-*
+char array[~(~0ul>>1)|~(0ul>>3)]; // ERROR - overflow in array dimension.*
int main () { printf ("PASS\n"); return 0; }