]> Savannah Git Hosting - gnulib.git/commitdiff
verify-tests: work around xlc bug
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Jun 2019 00:41:46 +0000 (17:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Jun 2019 00:42:23 +0000 (17:42 -0700)
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
tests/test-verify.c

index 3ab71a3d95e150bfb86034824465711bb9f3359a..c76ac88525ebb7e5b69542f42ed190ecc71d795d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <bruno@clisp.org>
 
        Restore Emacs time-stamp hook applicability.
index 0afbcabdea582fe9a032213fb5e9fa6b4bb00b07..98983c3c43248b7e80904646d60e1e748bfb1ca6 100644 (file)
@@ -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