X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-ceilf2.c;h=97f019dc2173af46084f08d33771cb3ba287eeb3;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=b0893416b58f648153fe27b2c522691b1b687c1c;hpb=3be902cd0bdb566284ceb3f6fae538391da1faed;p=gnulib.git diff --git a/tests/test-ceilf2.c b/tests/test-ceilf2.c index b0893416b..97f019dc2 100644 --- a/tests/test-ceilf2.c +++ b/tests/test-ceilf2.c @@ -1,5 +1,5 @@ /* Test of rounding towards positive infinity. - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-2014 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 @@ -32,6 +32,12 @@ #include "minus-zero.h" #include "macros.h" +/* MSVC with option -fp:strict refuses to compile constant initializers that + contain floating-point operations. Pacify this compiler. */ +#ifdef _MSC_VER +# pragma fenv_access (off) +#endif + /* The reference implementation, taken from lib/ceil.c. */