From: Ulrich Drepper Date: Sat, 22 Feb 2003 09:10:06 +0000 (+0000) Subject: (main): Add strtold test case. X-Git-Tag: cvs/glibc-2_3_2~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=286a45c522492350d40b1804c96b43c6aefbfecb;p=thirdparty%2Fglibc.git (main): Add strtold test case. --- diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c index 9496c3d776f..cf5533da3ed 100644 --- a/stdlib/tst-strtod.c +++ b/stdlib/tst-strtod.c @@ -148,6 +148,14 @@ main (int argc, char ** argv) status = 1; } + const char input2[] = "+1.000000000116415321826934814453125"; + if (strtold (input2, NULL) != +1.000000000116415321826934814453125) + { + printf ("input2: %La != %La\n", strtold (input2, NULL), + +1.000000000116415321826934814453125); + status = 1; + } + status |= long_dbl (); status |= locale_test ();