Test bitstring macro evaluation.
authorbluhm <bluhm@openbsd.org>
Mon, 26 Aug 2024 12:15:40 +0000 (12:15 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 26 Aug 2024 12:15:40 +0000 (12:15 +0000)
commita4a66a2b7b2e7ede0b2cd06faaaf57170bb49de2
treea58520fd5a6ec75d8ce6ea0286522b234073152b
parent4491bd906279ac5ed280f88e0b77158b6284ff46
Test bitstring macro evaluation.

For all bitstring macros, add a test with side effects in the
arguments.  Also fix compiler warnings and wrap long line.  In
main() replace exit(0) with return(0) to check stack canary.  Create
expected test files with make target create-good.

OK florian deraadt@
regress/include/bitstring/Makefile
regress/include/bitstring/bitstring_test.c
regress/include/bitstring/good/27
regress/include/bitstring/good/32
regress/include/bitstring/good/49
regress/include/bitstring/good/64
regress/include/bitstring/good/67
regress/include/bitstring/good/8