diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-05-01 08:11:12 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-05-01 08:11:37 -0700 |
commit | 98deb4fad3bdc7986274feebac3f0f8a50fdce0a (patch) | |
tree | 665cf82abe975de6d64a22b3a4bc461c3ede462b /tests | |
parent | c2a5953f179814dd0f4b7e627aae9a009181ed6a (diff) | |
download | gnulib-98deb4fad3bdc7986274feebac3f0f8a50fdce0a.tar.gz |
limits-h: port to pcc
* doc/posix-headers/limits.texi: Document the issue.
* lib/limits.in.h (MB_LEN_MAX): New macro, if not already defined.
* m4/limits-h.m4 (gl_LIMITS_H): Test for MB_LEN_MAX.
* tests/test-limits-h.c: Check that it’s positive.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-limits-h.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-limits-h.c b/tests/test-limits-h.c index d8cdac288d..d7cfba7131 100644 --- a/tests/test-limits-h.c +++ b/tests/test-limits-h.c @@ -113,6 +113,8 @@ verify_width (ULLONG_WIDTH, 0, ULLONG_MAX); int bool_attrs[] = { BOOL_MAX, BOOL_WIDTH }; static_assert (BOOL_MAX == (((1U << (BOOL_WIDTH - 1)) - 1) * 2) + 1); +static_assert (0 < MB_LEN_MAX); + int main (void) { |