From: Bruno Haible Date: Sun, 15 Sep 2019 15:26:49 +0000 (+0200) Subject: intprops tests: Avoid build failure with HP-UX cc. X-Git-Tag: v1.0~4660 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=363834ac717a72835f599681ae98d4b433c82fe8;p=gnulib.git intprops tests: Avoid build failure with HP-UX cc. * tests/test-intprops.c: Disable a check that makes HP cc choke with "error 4018: Macro param too large after substitution - use -H option.". --- diff --git a/ChangeLog b/ChangeLog index 5f4c13e07a..c94ebeb0ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-09-15 Bruno Haible + + intprops tests: Avoid build failure with HP-UX cc. + * tests/test-intprops.c: Disable a check that makes HP cc choke with + "error 4018: Macro param too large after substitution - use -H option.". + 2019-09-14 Bruno Haible Make autoconf tests work with -Werror=implicit-function-declaration. diff --git a/tests/test-intprops.c b/tests/test-intprops.c index be0c6b3a7c..1837f7b759 100644 --- a/tests/test-intprops.c +++ b/tests/test-intprops.c @@ -368,7 +368,9 @@ main (void) CHECK_PRODUCT (INT_MAX, UINT_MAX, unsigned int, true, INT_MAX * UINT_MAX); CHECK_PRODUCT (INT_MAX, ULONG_MAX, unsigned long int, true, 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); CHECK_PRODUCT (INT_MIN, UINT_MAX, unsigned int, true, INT_MIN * UINT_MAX); CHECK_PRODUCT (INT_MIN, ULONG_MAX, unsigned long int, true,