From c54ff5c67ea2b2a1235e066da27ffec48a40c566 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 26 Oct 2010 00:23:45 -0400 Subject: [PATCH] Add missing file. --- string/bug-strchr1.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 string/bug-strchr1.c 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 +#include + +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"