]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - stdlib/tst-strtod.c
Fix strtod rounding of hex values (bug 14049).
[thirdparty/glibc.git] / stdlib / tst-strtod.c
index 25bee78f2e999cf88b3485d0d02d8bcf2bb400f8..738e73ebbae150c70d748bb84d01e018e8e28780 100644 (file)
@@ -69,6 +69,11 @@ static const struct ltest tests[] =
     { "+InFiNiTy", HUGE_VAL, '\0', 0 },
     { "0x80000Ap-23", 0x80000Ap-23, '\0', 0 },
     { "1e-324", 0, '\0', ERANGE },
+    { "0x100000000000008p0", 0x1p56, '\0', 0 },
+    { "0x100000000000008.p0", 0x1p56, '\0', 0 },
+    { "0x100000000000008.00p0", 0x1p56, '\0', 0 },
+    { "0x10000000000000800p0", 0x1p64, '\0', 0 },
+    { "0x10000000000000801p0", 0x1.0000000000001p64, '\0', 0 },
     { NULL, 0, '\0', 0 }
   };