diff options
| author | cvs2svn <admin@example.com> | 2019-11-19 19:57:05 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2019-11-19 19:57:05 +0000 |
| commit | e9f9eb6198f1757b7c0dfef043fadf1fa8243022 (patch) | |
| tree | b5a648f6ccaf6c1cd9915ddb45503d1fccfeba0e /src/regress/lib/libc/strtod | |
| parent | ab72e3a6f7e8d5c71bbba034410468781d5923b6 (diff) | |
| download | openbsd-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/strtod')
| -rw-r--r-- | src/regress/lib/libc/strtod/Makefile | 5 | ||||
| -rw-r--r-- | src/regress/lib/libc/strtod/strtodtest.c | 23 |
2 files changed, 0 insertions, 28 deletions
diff --git a/src/regress/lib/libc/strtod/Makefile b/src/regress/lib/libc/strtod/Makefile deleted file mode 100644 index 030c0e7f56..0000000000 --- a/src/regress/lib/libc/strtod/Makefile +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.1 2006/09/29 11:00:24 otto Exp $ | ||
| 2 | |||
| 3 | PROG= strtodtest | ||
| 4 | |||
| 5 | .include <bsd.regress.mk> | ||
diff --git a/src/regress/lib/libc/strtod/strtodtest.c b/src/regress/lib/libc/strtod/strtodtest.c deleted file mode 100644 index 570a002b18..0000000000 --- a/src/regress/lib/libc/strtod/strtodtest.c +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | /* $OpenBSD: strtodtest.c,v 1.2 2017/02/25 07:28:32 jsg Exp $ */ | ||
| 2 | /* Public domain, Otto Moerbeek <otto@drijf.net>, 2006. */ | ||
| 3 | |||
| 4 | #include <stdio.h> | ||
| 5 | #include <stdlib.h> | ||
| 6 | #include <errno.h> | ||
| 7 | #include <err.h> | ||
| 8 | |||
| 9 | /* | ||
| 10 | * Checks if strtod() reports underflow. | ||
| 11 | */ | ||
| 12 | |||
| 13 | int | ||
| 14 | main() | ||
| 15 | { | ||
| 16 | char *tmp="0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002"; | ||
| 17 | double d; | ||
| 18 | |||
| 19 | d = strtod(tmp, NULL); | ||
| 20 | if (errno != ERANGE) | ||
| 21 | errx(1, "errno = %d", errno); | ||
| 22 | return (0); | ||
| 23 | } | ||
