diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-06-03 12:05:38 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-06-03 12:05:38 +0000 |
commit | 6dfe6b728279bf027f7de55683042647a00fd59d (patch) | |
tree | 88cd51a82e75784189e3983d8d7891b8abdb8606 | |
parent | 41a601f8dfa983968a071e6ef886dcc75f0c8409 (diff) | |
download | mpfr-6dfe6b728279bf027f7de55683042647a00fd59d.tar.gz |
[tests/tget_d.c] Error message when check_inf_nan() fails for NaN.
Note: With "icx -O2" (at least), 8 tests are now failing with
Intel(R) oneAPI DPC++ Compiler 2021.2.0 (2021.2.0.20210317).
But no failures when the compiler is invoked as "clang".
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14536 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/tget_d.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tget_d.c b/tests/tget_d.c index 5b7667275..e0ba35025 100644 --- a/tests/tget_d.c +++ b/tests/tget_d.c @@ -107,7 +107,11 @@ check_inf_nan (void) mpfr_set_nan (x); d = mpfr_get_d (x, MPFR_RNDZ); - MPFR_ASSERTN (DOUBLE_ISNAN (d)); + if (!DOUBLE_ISNAN (d)) + { + printf ("Error in check_inf_nan() for NaN, got %.17g\n", d); + exit (1); + } mpfr_clear (x); #endif |