From: Bruno Haible Date: Sat, 4 Jan 2020 01:46:44 +0000 (+0100) Subject: uchar tests: Avoid compilation error with HP cc. X-Git-Tag: v1.0~4382 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b578e9e7bc440dc0a6db6d316b78bf4ac75d4f9c;p=gnulib.git uchar tests: Avoid compilation error with HP cc. * tests/test-uchar.c: Disable a test when HP cc is in use. --- diff --git a/ChangeLog b/ChangeLog index 63f579963e..2ae1d5af9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-01-03 Bruno Haible + + uchar tests: Avoid compilation error with HP cc. + * tests/test-uchar.c: Disable a test when HP cc is in use. + 2020-01-03 Bruno Haible mbrtoc32: Add tests. diff --git a/tests/test-uchar.c b/tests/test-uchar.c index c2de59d479..020d82d58c 100644 --- a/tests/test-uchar.c +++ b/tests/test-uchar.c @@ -30,7 +30,9 @@ char32_t d = 'y'; /* Check that char16_t and char32_t are unsigned types. */ verify ((char16_t)(-1) >= 0); +#if !defined __HP_cc verify ((char32_t)(-1) >= 0); +#endif /* Check that char32_t is at least 31 bits wide. */ verify ((char32_t)0x7FFFFFFF != (char32_t)0x3FFFFFFF);