diff options
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 | 22 |
2 files changed, 0 insertions, 27 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 0291365a75..0000000000 --- a/src/regress/lib/libc/strtod/strtodtest.c +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | /* $OpenBSD: strtodtest.c,v 1.1 2006/09/29 11:00:24 otto Exp $ */ | ||
| 2 | /* Public domain, Otto Moerbeek <otto@drijf.net>, 2006. */ | ||
| 3 | |||
| 4 | #include <stdio.h> | ||
| 5 | #include <stdlib.h> | ||
| 6 | #include <errno.h> | ||
| 7 | |||
| 8 | /* | ||
| 9 | * Checks if strtod() reports underflow. | ||
| 10 | */ | ||
| 11 | |||
| 12 | int | ||
| 13 | main() | ||
| 14 | { | ||
| 15 | char *tmp="0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002"; | ||
| 16 | double d; | ||
| 17 | |||
| 18 | d = strtod(tmp, NULL); | ||
| 19 | if (errno != ERANGE) | ||
| 20 | errx(1, "errno = %d", errno); | ||
| 21 | return (0); | ||
| 22 | } | ||
