summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/modf
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2019-11-19 19:57:05 +0000
committercvs2svn <admin@example.com>2019-11-19 19:57:05 +0000
commite9f9eb6198f1757b7c0dfef043fadf1fa8243022 (patch)
treeb5a648f6ccaf6c1cd9915ddb45503d1fccfeba0e /src/regress/lib/libc/modf
parentab72e3a6f7e8d5c71bbba034410468781d5923b6 (diff)
downloadopenbsd-bluhm_20191119.tar.gz
openbsd-bluhm_20191119.tar.bz2
openbsd-bluhm_20191119.zip
This commit was manufactured by cvs2git to create tag 'bluhm_20191119'.bluhm_20191119
Diffstat (limited to 'src/regress/lib/libc/modf')
-rw-r--r--src/regress/lib/libc/modf/Makefile3
-rw-r--r--src/regress/lib/libc/modf/modf_test.c35
2 files changed, 0 insertions, 38 deletions
diff --git a/src/regress/lib/libc/modf/Makefile b/src/regress/lib/libc/modf/Makefile
deleted file mode 100644
index 587c595f12..0000000000
--- a/src/regress/lib/libc/modf/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
1PROG=modf_test
2
3.include <bsd.regress.mk>
diff --git a/src/regress/lib/libc/modf/modf_test.c b/src/regress/lib/libc/modf/modf_test.c
deleted file mode 100644
index f732533635..0000000000
--- a/src/regress/lib/libc/modf/modf_test.c
+++ /dev/null
@@ -1,35 +0,0 @@
1/* Public domain, 2014, Tobias Ulmer <tobiasu@tmux.org> */
2
3/* Test for bug introduced in 4.4BSD modf() on sparc */
4
5#include <math.h>
6
7#define BIGFLOAT (5e15) /* Number large enough to trigger the "big" case */
8
9int
10main(void)
11{
12 double f, i;
13
14 f = modf(BIGFLOAT, &i);
15 if (i != BIGFLOAT)
16 return 1;
17 if (f != 0.0)
18 return 1;
19
20 /* Repeat, maybe we were lucky */
21 f = modf(BIGFLOAT, &i);
22 if (i != BIGFLOAT)
23 return 1;
24 if (f != 0.0)
25 return 1;
26
27 /* With negative number, for good measure */
28 f = modf(-BIGFLOAT, &i);
29 if (i != -BIGFLOAT)
30 return 1;
31 if (f != 0.0)
32 return 1;
33
34 return 0;
35}