aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-07-11 03:28:56 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-07-11 03:28:56 +0000
commit1dc9efda9178487c316f04470064772aa59acc1c (patch)
tree058c5dfaa9198f646e96b5bcddce60f2de33df2c /gcc
parent9959901c6be9ee93d1f2f2856bb5b5a3719b9771 (diff)
downloadgcc-1dc9efda9178487c316f04470064772aa59acc1c.zip
gcc-1dc9efda9178487c316f04470064772aa59acc1c.tar.gz
gcc-1dc9efda9178487c316f04470064772aa59acc1c.tar.bz2
* gcc.dg/20021018-1.c: Disable if the sizeof (int) < 4.
From-SVN: r69210
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/20021018-1.c9
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 363378c0..f7b1551 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
+
+ * gcc.dg/20021018-1.c: Disable if the sizeof (int) < 4.
+
2003-07-10 Mark Mitchell <mark@codesourcery.com>
PR c++/9411
diff --git a/gcc/testsuite/gcc.dg/20021018-1.c b/gcc/testsuite/gcc.dg/20021018-1.c
index 562aa88..2fef73f 100644
--- a/gcc/testsuite/gcc.dg/20021018-1.c
+++ b/gcc/testsuite/gcc.dg/20021018-1.c
@@ -1,10 +1,10 @@
/* { dg-do run } */
/* { dg-options "-O2 -fpic" } */
-/* { dg-error "overflow" "16-bit target" { target xstormy16-*-* } 0 } */
extern void abort (void);
extern void exit (int);
+#if __INT_MAX__ >= 2147483647L
static const long foo [10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
long __attribute__((noinline))
@@ -20,3 +20,10 @@ main (void)
abort ();
exit (0);
}
+#else
+int
+main (void)
+{
+ exit (0);
+}
+#endif