summaryrefslogtreecommitdiff
path: root/tests/test-cosl.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-01-24 21:22:00 +0100
committerBruno Haible <bruno@clisp.org>2010-01-24 21:23:07 +0100
commit494a4d32e2e9ed6201c38ff3fa28ed38c5396644 (patch)
treedde5518cd34e87daf34f285f2c3d95edc276e9cd /tests/test-cosl.c
parent368e66277a1fdb07a508f9c3ff5d5669e4b4e838 (diff)
downloadgnulib-494a4d32e2e9ed6201c38ff3fa28ed38c5396644.tar.gz
Tests: Defeat inlining of math functions by GCC >= 4.3.0.
Diffstat (limited to 'tests/test-cosl.c')
-rw-r--r--tests/test-cosl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-cosl.c b/tests/test-cosl.c
index 5e63fdd355..a13e75f84e 100644
--- a/tests/test-cosl.c
+++ b/tests/test-cosl.c
@@ -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;