]> Savannah Git Hosting - gnulib.git/commitdiff
uchar tests: Avoid compilation error with HP cc.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Jan 2020 01:46:44 +0000 (02:46 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Jan 2020 01:46:44 +0000 (02:46 +0100)
* tests/test-uchar.c: Disable a test when HP cc is in use.

ChangeLog
tests/test-uchar.c

index 63f579963e12ab2f7ed5702e2292627eea23a2a3..2ae1d5af9f84683bc084cc2983eccd4950338e57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-03  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        mbrtoc32: Add tests.
index c2de59d4792c63b57043c7e38a46152772aa206d..020d82d58c2afb1862a09931c4f34f806d640591 100644 (file)
@@ -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);