summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libc/stdio/test-scanfloat.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/lib/libc/stdio/test-scanfloat.c')
-rw-r--r--tools/regression/lib/libc/stdio/test-scanfloat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/regression/lib/libc/stdio/test-scanfloat.c b/tools/regression/lib/libc/stdio/test-scanfloat.c
index 342fc73..ef6faae 100644
--- a/tools/regression/lib/libc/stdio/test-scanfloat.c
+++ b/tools/regression/lib/libc/stdio/test-scanfloat.c
@@ -190,7 +190,15 @@ main(int argc, char *argv[])
assert(f != f);
assert(d != d);
assert(ld != ld);
+#if 0
+ /*
+ * POSIX says we should only generate quiet NaNs, but the gdtoa
+ * author convincingly argues that if you ask for a NaN format
+ * based on some implementation-defined string, you should get
+ * what you asked for, even if it's a signaling NaN.
+ */
assert(fetestexcept(FE_INVALID) == 0);
+#endif
printf("ok 2 - scanfloat\n");
OpenPOWER on IntegriCloud