X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-cosl.c;h=eb9c47f8b13704b495a6f04707d398a0d62fdc99;hb=4f1d12a5e3cef3d0da80e63320fcbc4d46a39c14;hp=5e63fdd355178dc8673cd2a7ac5f6ded67aaf7a1;hpb=a07a8312ef6890f02f8cebedcf32b851da7366f0;p=gnulib.git diff --git a/tests/test-cosl.c b/tests/test-cosl.c index 5e63fdd35..eb9c47f8b 100644 --- a/tests/test-cosl.c +++ b/tests/test-cosl.c @@ -1,5 +1,5 @@ /* Test of cosl() function. - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,6 +26,7 @@ SIGNATURE_CHECK (cosl, 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 = cosl (0.6L); + x = 0.6L; + y = cosl (x); ASSERT (y >= 0.8253356149L && y <= 0.8253356150L); return 0;