diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-07-06 00:06:11 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-07-06 00:06:11 +0000 |
commit | 261a0fb7e2b1a7a56fb7e4d0a025225ca0861e25 (patch) | |
tree | 3dfc8a1904bbe4e0ffc9e56dc17010313e985edb /regress | |
parent | 4aa87463a471e80d2c8acb5fadfd0388ed41d968 (diff) |
don't test unspecified behavior per ISO C (section F.4). this made
machines following IEC/IEEE for fp arith fail, since they take more
care of overflowed value. failure on zaurus reported by david@.
ok millert@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libm/toint/toint.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/regress/lib/libm/toint/toint.c b/regress/lib/libm/toint/toint.c index b2cbd1c3184..b9e3481487f 100644 --- a/regress/lib/libm/toint/toint.c +++ b/regress/lib/libm/toint/toint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: toint.c,v 1.5 2004/04/02 20:37:42 mickey Exp $ */ +/* $OpenBSD: toint.c,v 1.6 2009/07/06 00:06:10 martynas Exp $ */ /* Written by Michael Shalayeff, 2003, Public domain. */ @@ -42,11 +42,5 @@ main(int argc, char *argv[]) if (toint(8.6) != 9) exit(1); - i = toint(INT_MAX); - if (i != INT_MIN) { - printf("%d != %d\n", i, INT_MIN); - exit(1); - } - exit(0); } |