diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-22 09:10:06 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-22 09:10:06 +0000 |
commit | 286a45c522492350d40b1804c96b43c6aefbfecb (patch) | |
tree | efc5245f89913acf56d97f00705b57571e4cbfc4 | |
parent | 5148559c8834afc9bae433168d42a653a8347bf8 (diff) | |
download | glibc-286a45c522492350d40b1804c96b43c6aefbfecb.tar.gz glibc-286a45c522492350d40b1804c96b43c6aefbfecb.tar.xz glibc-286a45c522492350d40b1804c96b43c6aefbfecb.zip |
(main): Add strtold test case.
-rw-r--r-- | stdlib/tst-strtod.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c index 9496c3d776..cf5533da3e 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 (); |