mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 02:40:08 +00:00
Update.
* stdlib/tst-strtod.c: Add test for -0.0.
This commit is contained in:
parent
7eb759de39
commit
936365c1da
@ -1,5 +1,7 @@
|
||||
1998-05-13 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* stdlib/tst-strtod.c: Add test for -0.0.
|
||||
|
||||
* io/ftwtest-sh: Prevent tests from being run by root.
|
||||
|
||||
* wcsmbs/wcsmbsload.c (extract_charset_name): Fix silly bugs in
|
||||
|
@ -47,6 +47,7 @@ static void expand __P ((char *dst, int c));
|
||||
int
|
||||
main (int argc, char ** argv)
|
||||
{
|
||||
char buf[100];
|
||||
register const struct ltest *lt;
|
||||
char *ep;
|
||||
int status = 0;
|
||||
@ -83,6 +84,13 @@ main (int argc, char ** argv)
|
||||
}
|
||||
}
|
||||
|
||||
sprintf (buf, "%f", strtod ("-0.0", NULL));
|
||||
if (strcmp (buf, "-0.000000") != 0)
|
||||
{
|
||||
printf (" strtod (\"-0.0\', NULL) returns \"%s\"\n", buf);
|
||||
status = 1;
|
||||
}
|
||||
|
||||
exit (status ? EXIT_FAILURE : EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user