1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Add memchr tests for n == 0

* string/test-memchr.c (test_main): Add tests for n == 0.
This commit is contained in:
H.J. Lu
2017-05-25 11:36:53 -07:00
parent 6e75b0110d
commit acf6d579e0
2 changed files with 8 additions and 0 deletions

View File

@ -179,6 +179,10 @@ test_main (void)
for (i = 1; i < 8; ++i)
{
/* Test n == 0. */
do_test (i, i, 0, 0, 23);
do_test (i, i, 0, 0, 0);
do_test (0, 16 << i, 2048, 2048, 23);
do_test (i, 64, 256, 256, 23);
do_test (0, 16 << i, 2048, 2048, 0);