diff options
author | Ulrich Drepper <drepper@redhat.com> | 2010-10-26 00:23:45 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-10-26 00:23:45 -0400 |
commit | c54ff5c67ea2b2a1235e066da27ffec48a40c566 (patch) | |
tree | 0aeaa3d181e6772fd6a6978ec05fcc6f51ffdfab | |
parent | f09677388a44cd1460f8986ef1b096c73bd5b958 (diff) | |
download | glibc-c54ff5c67ea2b2a1235e066da27ffec48a40c566.tar.gz glibc-c54ff5c67ea2b2a1235e066da27ffec48a40c566.tar.xz glibc-c54ff5c67ea2b2a1235e066da27ffec48a40c566.zip |
Add missing file.
-rw-r--r-- | string/bug-strchr1.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/string/bug-strchr1.c b/string/bug-strchr1.c new file mode 100644 index 0000000000..21155d8a7f --- /dev/null +++ b/string/bug-strchr1.c @@ -0,0 +1,14 @@ +#include <stdio.h> +#include <string.h> + +static int +do_test (void) +{ + char s[] __attribute__((aligned(16))) = "\xff"; + char *p = strchr (s, '\xfe'); + printf ("%p\n", p); + return p != NULL; +} + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" |