X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-expl.c;h=90261910310b26379561b142031fe26138983ffe;hb=9436b51b876432bb26c2345e138e8ddd7c6a7fb2;hp=fe671c8bdf4198e10a59ed8d7f7352ef1817fb93;hpb=f20e1d7e0186c6f1517fb6babd446adf066683ce;p=gnulib.git diff --git a/tests/test-expl.c b/tests/test-expl.c index fe671c8bd..902619103 100644 --- a/tests/test-expl.c +++ b/tests/test-expl.c @@ -1,5 +1,5 @@ /* Test of expl() 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 (expl, 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 = expl (0.6L); + x = 0.6L; + y = expl (x); ASSERT (y >= 1.822118800L && y <= 1.822118801L); return 0;