aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-10-26 00:23:45 -0400
committerUlrich Drepper <drepper@redhat.com>2010-10-26 00:23:45 -0400
commitc54ff5c67ea2b2a1235e066da27ffec48a40c566 (patch)
tree0aeaa3d181e6772fd6a6978ec05fcc6f51ffdfab /string
parentf09677388a44cd1460f8986ef1b096c73bd5b958 (diff)
downloadglibc-c54ff5c67ea2b2a1235e066da27ffec48a40c566.zip
glibc-c54ff5c67ea2b2a1235e066da27ffec48a40c566.tar.gz
glibc-c54ff5c67ea2b2a1235e066da27ffec48a40c566.tar.bz2
Add missing file.
Diffstat (limited to 'string')
-rw-r--r--string/bug-strchr1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/string/bug-strchr1.c b/string/bug-strchr1.c
new file mode 100644
index 0000000..21155d8
--- /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"