X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-ceilf2.c;h=97f019dc2173af46084f08d33771cb3ba287eeb3;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=b8aa4792c5d99d2abd99237d5303113ad1ba96d8;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/tests/test-ceilf2.c b/tests/test-ceilf2.c index b8aa4792c..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-2011 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. */