From: Paul Eggert Date: Wed, 19 Jun 2019 00:41:46 +0000 (-0700) Subject: verify-tests: work around xlc bug X-Git-Tag: v1.0~4872 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=af35f056d12a30dee7a415d887b96b780e1f2ebc;p=gnulib.git verify-tests: work around xlc bug Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html * tests/test-verify.c (item): Move the arithmetic inside the verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1. --- diff --git a/ChangeLog b/ChangeLog index 3ab71a3d95..c76ac88525 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2019-06-18 Paul Eggert + + verify-tests: work around xlc bug + Problem reported by Bruno Haible in: + https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html + * tests/test-verify.c (item): Move the arithmetic inside the + verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1. + 2019-06-16 Bruno Haible Restore Emacs time-stamp hook applicability. diff --git a/tests/test-verify.c b/tests/test-verify.c index 0afbcabdea..98983c3c43 100644 --- a/tests/test-verify.c +++ b/tests/test-verify.c @@ -39,7 +39,7 @@ verify (1 == 1); verify (1 == 1); /* should be ok */ enum { - item = verify_expr (1 == 1, 10) * 0 + 17 /* should be ok */ + item = verify_expr (1 == 1, 10 * 0 + 17) /* should be ok */ }; static int