X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-ceil2.c;h=5899145f3ab0667fefa43888ccefbb77388e04ac;hb=c50edd6462eaaae00f8549f9bad99d4e68b94376;hp=31baeb8b842e26606ec90f9f0e7372af80c85614;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/tests/test-ceil2.c b/tests/test-ceil2.c index 31baeb8b8..5899145f3 100644 --- a/tests/test-ceil2.c +++ b/tests/test-ceil2.c @@ -1,5 +1,5 @@ /* Test of rounding towards positive infinity. - Copyright (C) 2007-2012 Free Software Foundation, Inc. + Copyright (C) 2007-2013 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. */