Mercurial > hg > octave-kai > gnulib-hg
diff tests/test-cosl.c @ 12776:bebb37f7d22e
Tests: Defeat inlining of math functions by GCC >= 4.3.0.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 24 Jan 2010 21:22:00 +0100 (2010-01-24) |
parents | e07744489348 |
children | 97fc9a21a8fb |
line wrap: on
line diff
--- a/tests/test-cosl.c +++ b/tests/test-cosl.c @@ -26,6 +26,7 @@ #include "fpucw.h" #include "macros.h" +volatile long double x; long double y; int @@ -36,7 +37,8 @@ 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;