From 494a4d32e2e9ed6201c38ff3fa28ed38c5396644 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 24 Jan 2010 21:22:00 +0100 Subject: Tests: Defeat inlining of math functions by GCC >= 4.3.0. --- tests/test-cosl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/test-cosl.c') 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; -- cgit v1.2.1