about summary refs log tree commit diff
path: root/stdlib/tst-strtod.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-05-04 10:44:39 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-05-04 10:44:39 +0000
commit8f203e6cb695daa219f8148e81e108c2da8137d4 (patch)
tree1d4730fe5e620526011369c6b354f97521a2797a /stdlib/tst-strtod.c
parent5197d9c2b443eb6ae89ad9ae1eb8f655650d8d9f (diff)
downloadglibc-8f203e6cb695daa219f8148e81e108c2da8137d4.tar.gz
glibc-8f203e6cb695daa219f8148e81e108c2da8137d4.tar.xz
glibc-8f203e6cb695daa219f8148e81e108c2da8137d4.zip
Fix strtod rounding of hex values (bug 14049).
Diffstat (limited to 'stdlib/tst-strtod.c')
-rw-r--r--stdlib/tst-strtod.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c
index 25bee78f2e..738e73ebba 100644
--- a/stdlib/tst-strtod.c
+++ b/stdlib/tst-strtod.c
@@ -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 }
   };