X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sqrtl.c;h=a7baef783c55300075ac2f65fa40b8da1dec5b5d;hb=3ebb13c313998a3c39c8d1c18475790e65e59abc;hp=2bf34fa0047d378e58e4d6a5ddf96774d2ead0e0;hpb=6d070de3c1b65aa3fc0b3f1c3ef853ffac8845b9;p=gnulib.git diff --git a/tests/test-sqrtl.c b/tests/test-sqrtl.c index 2bf34fa00..a7baef783 100644 --- a/tests/test-sqrtl.c +++ b/tests/test-sqrtl.c @@ -26,6 +26,7 @@ SIGNATURE_CHECK (sqrtl, long double, (long double)); #include "fpucw.h" #include "macros.h" +volatile long double x; long double y; int @@ -36,7 +37,8 @@ main () BEGIN_LONG_DOUBLE_ROUNDING (); /* A particular value. */ - y = sqrtl (0.6L); + x = 0.6L; + y = sqrtl (x); ASSERT (y >= 0.7745966692L && y <= 0.7745966693L); return 0;