* tests/test-intprops.c (main): Also check TYPE_SIGNED on ‘char’. --- ChangeLog | 3 +++ tests/test-intprops.c | 1 + 2 files changed, 4 insertions(+)
diff --git a/ChangeLog b/ChangeLog index 0047b638f8..1f2c85cb70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2026-05-13 Paul Eggert <[email protected]> + intprops-tests: check TYPE_SIGNED (char) + * tests/test-intprops.c (main): Also check TYPE_SIGNED on ‘char’. + intprops-tests: new boundary tests * tests/test-intprops.c (CHECK_BOUNDARIES): New macro, implementing more tests. diff --git a/tests/test-intprops.c b/tests/test-intprops.c index 1e90e21c6e..0f3aea029e 100644 --- a/tests/test-intprops.c +++ b/tests/test-intprops.c @@ -106,6 +106,7 @@ main (void) /* TYPE_SIGNED. */ /* VERIFY (! TYPE_SIGNED (bool)); // not guaranteed by gnulib substitute */ + VERIFY (TYPE_SIGNED (char) == (CHAR_MIN < 0)); VERIFY (TYPE_SIGNED (signed char)); VERIFY (! TYPE_SIGNED (unsigned char)); VERIFY (TYPE_SIGNED (short int)); -- 2.54.0
