]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add missing file.
authorUlrich Drepper <drepper@redhat.com>
Tue, 26 Oct 2010 04:23:45 +0000 (00:23 -0400)
committerAndreas Schwab <schwab@redhat.com>
Wed, 1 Dec 2010 14:35:06 +0000 (15:35 +0100)
(cherry picked from commit c54ff5c67ea2b2a1235e066da27ffec48a40c566)

string/bug-strchr1.c [new file with mode: 0644]

diff --git a/string/bug-strchr1.c b/string/bug-strchr1.c
new file mode 100644 (file)
index 0000000..21155d8
--- /dev/null
@@ -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"