>From 75acd2ec14fcc0b0695e8a108167562d65417f79 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 18 Jun 2019 17:41:46 -0700 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ tests/test-verify.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3ab71a3d9..c76ac8852 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 0afbcabde..98983c3c4 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 -- 2.21.0