Commit 1dc9efda by Kazu Hirata Committed by Kazu Hirata

* gcc.dg/20021018-1.c: Disable if the sizeof (int) < 4.

From-SVN: r69210
parent 9959901c
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
......
/* { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment