X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-expl.c;h=73091065329c6d9e0c0197945b729403b5e88d34;hb=be155d544d0d75da64fbf4210c7084e3be7dd26d;hp=fe671c8bdf4198e10a59ed8d7f7352ef1817fb93;hpb=f20e1d7e0186c6f1517fb6babd446adf066683ce;p=gnulib.git diff --git a/tests/test-expl.c b/tests/test-expl.c index fe671c8bd..730910653 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-2012 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 @@ -23,10 +23,17 @@ #include "signature.h" SIGNATURE_CHECK (expl, long double, (long double)); +#include + #include "fpucw.h" #include "macros.h" -long double y; +#define DOUBLE long double +#define L_(literal) literal##L +#define MANT_DIG LDBL_MANT_DIG +#define EXP expl +#define RANDOM randoml +#include "test-exp.h" int main () @@ -36,8 +43,11 @@ 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); + test_function (); + return 0; }