X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-logl.c;h=5fb76189c98982d7fcfb13432f072eaa70f1086d;hb=7170ee077cc44186a70cb264ceb8352a1349e05b;hp=12bf62425d0c280c543ddd856b9f7ef1910d0c8b;hpb=6b91d7e06d63c3d4a34db6c898d133812169a8ff;p=pspp diff --git a/tests/test-logl.c b/tests/test-logl.c index 12bf62425d..5fb76189c9 100644 --- a/tests/test-logl.c +++ b/tests/test-logl.c @@ -1,5 +1,5 @@ /* Test of logl() 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 (logl, 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 = logl (0.6L); + x = 0.6L; + y = logl (x); ASSERT (y >= -0.5108256238L && y <= -0.5108256237L); return 0;