(main): Add strtold test case.
authorUlrich Drepper <drepper@redhat.com>
Sat, 22 Feb 2003 09:10:06 +0000 (09:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 22 Feb 2003 09:10:06 +0000 (09:10 +0000)
stdlib/tst-strtod.c

index 9496c3d..cf5533d 100644 (file)
@@ -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 ();