]> Savannah Git Hosting - gnulib.git/commit
intprops tests: Strengthen INT_PROMOTE tests.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Feb 2025 05:07:13 +0000 (06:07 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Feb 2025 05:07:13 +0000 (06:07 +0100)
commit23c665097c8cf504cfee4dfc3d5f151e2c60837f
treea0ae618b7ca39112beae7de37c525e144e604aec
parentd4fa8756f0deda30f77a1779e4d0da3c2b8f688b
intprops tests: Strengthen INT_PROMOTE tests.

* lib/intprops.h (INT_PROMOTE): Refine comment.
* tests/test-intprops.c: Check the size and sign of INT_PROMOTE (x) on
all compilers.
(main): Check that INT_PROMOTE is a no-op on floats.
ChangeLog
lib/intprops.h
tests/test-intprops.c