summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-10-12 12:56:53 +0200
committerBruno Haible <bruno@clisp.org>2019-10-12 12:56:53 +0200
commit71f6016e89bd4d90b3954eef584fdb3ac0a94915 (patch)
tree47866f8b524344344509f57aa7add7ba71460646
parent79f8ee4e389f8cb1339f8abed9a7d29816e2a2d4 (diff)
downloadgnulib-71f6016e89bd4d90b3954eef584fdb3ac0a94915.tar.gz
gnulib-71f6016e89bd4d90b3954eef584fdb3ac0a94915.tar.bz2
intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
* tests/test-intprops.c (main): Disable two more tests when using HP-UX cc.
-rw-r--r--ChangeLog6
-rw-r--r--tests/test-intprops.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0297bd0697..47575b06e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-10-12 Bruno Haible <bruno@clisp.org>
+
+ intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
+ * tests/test-intprops.c (main): Disable two more tests when using
+ HP-UX cc.
+
2019-10-11 Paul Eggert <eggert@cs.ucla.edu>
Simplify and regularize regex use of ‘assert’
diff --git a/tests/test-intprops.c b/tests/test-intprops.c
index 1837f7b759..01efb29446 100644
--- a/tests/test-intprops.c
+++ b/tests/test-intprops.c
@@ -218,8 +218,10 @@ main (void)
CHECK_SBINOP (*, MULTIPLY, INT_MIN, INT_MIN, int, true, 0);
CHECK_SBINOP (*, MULTIPLY, -1, INT_MIN, int,
INT_NEGATE_OVERFLOW (INT_MIN), INT_MIN);
+#if !defined __HP_cc
CHECK_SBINOP (*, MULTIPLY, LONG_MIN / INT_MAX, (long int) INT_MAX,
long int, false, LONG_MIN - LONG_MIN % INT_MAX);
+#endif
CHECK_BINOP (/, DIVIDE, INT_MIN, -1, int,
INT_NEGATE_OVERFLOW (INT_MIN), INT_MIN);
@@ -370,8 +372,8 @@ main (void)
INT_MAX * ULONG_MAX);
#if !defined __HP_cc
CHECK_SPRODUCT (INT_MIN, LONG_MAX / INT_MIN - 1, long int, true, LONG_MIN);
-#endif
CHECK_SPRODUCT (INT_MIN, LONG_MAX / INT_MIN, long int, false, DONTCARE);
+#endif
CHECK_PRODUCT (INT_MIN, UINT_MAX, unsigned int, true, INT_MIN * UINT_MAX);
CHECK_PRODUCT (INT_MIN, ULONG_MAX, unsigned long int, true,
INT_MIN * ULONG_MAX);

Return to:

Send suggestions and report system problems to the System administrator.