about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-10-26 00:23:45 -0400
committerAndreas Schwab <schwab@redhat.com>2010-12-01 15:35:06 +0100
commitedf2704cf81cb829dea2a011cdc424024eba088b (patch)
tree3ed71cac69e43dd89d8051917f0440976e41d6cd /string
parentd8a3c98ac750b7dfd146ecfee2489164d98c4d65 (diff)
downloadglibc-edf2704cf81cb829dea2a011cdc424024eba088b.tar.gz
glibc-edf2704cf81cb829dea2a011cdc424024eba088b.tar.xz
glibc-edf2704cf81cb829dea2a011cdc424024eba088b.zip
Add missing file.
(cherry picked from commit c54ff5c67ea2b2a1235e066da27ffec48a40c566)
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 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"