X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-ceil2.c;h=bff6730a5f299290a09f32d7ef8e1e2377d08fff;hb=d4903bb0efac5e399b785c71367d8cda3fb539ab;hp=74f8014c4de4cbf7a5d07fa9c1662a628ce71a6e;hpb=3be902cd0bdb566284ceb3f6fae538391da1faed;p=gnulib.git diff --git a/tests/test-ceil2.c b/tests/test-ceil2.c index 74f8014c4..bff6730a5 100644 --- a/tests/test-ceil2.c +++ b/tests/test-ceil2.c @@ -1,5 +1,5 @@ /* Test of rounding towards positive infinity. - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-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 @@ -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. */