diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-08-04 01:48:33 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-08-04 01:48:33 +0000 |
commit | de4c0393e64ea1cb247963703c7807affc9557dd (patch) | |
tree | 67795e77fb8b313c71d9c4310d2a2ba8fc6f9657 /tests/tsi_op.c | |
parent | a131b39f102e14796bc208b375f5c30b8314b187 (diff) | |
download | mpfr-de4c0393e64ea1cb247963703c7807affc9557dd.tar.gz |
[tests] C++ compatibility: avoid errors with "g++ -std=c++11" or later.
Note that as of GCC 6, "the default mode for C++ is now -std=gnu++14
instead of -std=gnu++98" <https://gcc.gnu.org/gcc-6/changes.html>.
So, this fixes the failures in the build of the MPFR tests with g++
from GCC 6 without particular options.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10719 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsi_op.c')
-rw-r--r-- | tests/tsi_op.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/tsi_op.c b/tests/tsi_op.c index f7c94bc88..cbb0f9a4f 100644 --- a/tests/tsi_op.c +++ b/tests/tsi_op.c @@ -27,14 +27,14 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., tgeneric_ui.c should probably be replaced by tgeneric.c, with some changes, since tgeneric.c does more checks. */ -#define ERROR1(s, i, z, exp) \ -{\ - printf("Error for "s" and i=%d\n", i);\ - printf("Expected %s\n", exp);\ - printf("Got "); mpfr_out_str (stdout, 16, 0, z, MPFR_RNDN);\ - putchar ('\n');\ - exit(1);\ -} +#define ERROR1(s,i,z,exp) \ + { \ + printf ("Error for " s " and i=%d\n", i); \ + printf ("Expected %s\n", exp); \ + printf ("Got "); mpfr_out_str (stdout, 16, 0, z, MPFR_RNDN); \ + putchar ('\n'); \ + exit(1); \ + } const struct { const char * op1; |