projects
/
platform
/
upstream
/
linaro-glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f096773
)
Add missing file.
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 26 Oct 2010 04:23:45 +0000
(
00:23
-0400)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 26 Oct 2010 04:23:45 +0000
(
00:23
-0400)
string/bug-strchr1.c
[new file with mode: 0644]
patch
|
blob
diff --git a/string/bug-strchr1.c
b/string/bug-strchr1.c
new file mode 100644
(file)
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"