diff --git a/libc/test/src/stdlib/strtod_test.cpp b/libc/test/src/stdlib/strtod_test.cpp --- a/libc/test/src/stdlib/strtod_test.cpp +++ b/libc/test/src/stdlib/strtod_test.cpp @@ -191,4 +191,8 @@ "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN?", 0, uint64_t(0)); run_test("0x.666E40", 9, uint64_t(0x3fd99b9000000000)); + + // glibc disagrees with this result, but ours is correct for the nearest + // rounding mode. + run_test("0x30000002222225p-1077", 22, uint64_t(0x0006000000444445), ERANGE); }