X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-floor2.c;h=c8fc7d41f0c7afc4d5ecd0f12b575af2b2b3f48c;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=292fbc5a80865319efe995530e19b9299cf5afae;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/tests/test-floor2.c b/tests/test-floor2.c index 292fbc5a8..c8fc7d41f 100644 --- a/tests/test-floor2.c +++ b/tests/test-floor2.c @@ -1,5 +1,5 @@ /* Test of rounding towards negative infinity. - Copyright (C) 2007-2012 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 @@ -31,6 +31,12 @@ #include "isnand-nolibm.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/floor.c. */