projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maint: fix doubled-word typo in comments
[gnulib.git]
/
tests
/
test-memchr.c
diff --git
a/tests/test-memchr.c
b/tests/test-memchr.c
index
e7b9780
..
a11f6cd
100644
(file)
--- a/
tests/test-memchr.c
+++ b/
tests/test-memchr.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2008-201
0
Free Software Foundation, Inc.
+ * Copyright (C) 2008-201
1
Free Software Foundation, Inc.
* Written by Eric Blake and Bruno Haible
*
* This program is free software: you can redistribute it and/or modify
* Written by Eric Blake and Bruno Haible
*
* This program is free software: you can redistribute it and/or modify
@@
-57,6
+57,7
@@
main (void)
ASSERT (MEMCHR (input + 1, 'a', n - 1) == input + n - 1);
ASSERT (MEMCHR (input + 1, 'e', n - 1) == input + n - 2);
ASSERT (MEMCHR (input + 1, 'a', n - 1) == input + n - 1);
ASSERT (MEMCHR (input + 1, 'e', n - 1) == input + n - 2);
+ ASSERT (MEMCHR (input + 1, 0x789abc00 | 'e', n - 1) == input + n - 2);
ASSERT (MEMCHR (input, 'f', n) == NULL);
ASSERT (MEMCHR (input, '\0', n) == NULL);
ASSERT (MEMCHR (input, 'f', n) == NULL);
ASSERT (MEMCHR (input, '\0', n) == NULL);