summaryrefslogtreecommitdiffstats
path: root/regress/lib/libm
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2009-07-06 00:06:10 +0000
committermartynas <martynas@openbsd.org>2009-07-06 00:06:10 +0000
commit7365884eb24872c3f7a29a1f7b366e08d39f1ca1 (patch)
tree2b83b6d2a83972f98fa76e514d625dc4c8284b2e /regress/lib/libm
parenttake us to 4.6-current (diff)
downloadwireguard-openbsd-7365884eb24872c3f7a29a1f7b366e08d39f1ca1.tar.xz
wireguard-openbsd-7365884eb24872c3f7a29a1f7b366e08d39f1ca1.zip
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/lib/libm')
-rw-r--r--regress/lib/libm/toint/toint.c8
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);
}