From ee091edf1a16312fff0cc3c6ae0116aded7f1dbf Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 5 Apr 2013 20:28:47 +0200 Subject: More tests for external charater sequences representing NaNs. --- stdlib/tst-strtod6.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'stdlib/tst-strtod6.c') diff --git a/stdlib/tst-strtod6.c b/stdlib/tst-strtod6.c index fdb104f9ca..1d87266a27 100644 --- a/stdlib/tst-strtod6.c +++ b/stdlib/tst-strtod6.c @@ -16,6 +16,11 @@ do_test (void) puts ("strtod did not return NAN"); result = 1; } + if (issignaling (d)) + { + puts ("strtod returned a sNAN"); + result = 1; + } if (strcmp (endp, "something") != 0) { puts ("strtod set incorrect end pointer"); @@ -28,6 +33,11 @@ do_test (void) puts ("strtof did not return NAN"); result = 1; } + if (issignaling (f)) + { + puts ("strtof returned a sNAN"); + result = 1; + } if (strcmp (endp, "something") != 0) { puts ("strtof set incorrect end pointer"); @@ -40,6 +50,11 @@ do_test (void) puts ("strtold did not return NAN"); result = 1; } + if (issignaling (ld)) + { + puts ("strtold returned a sNAN"); + result = 1; + } if (strcmp (endp, "something") != 0) { puts ("strtold set incorrect end pointer"); -- cgit v1.2.1