about summary refs log tree commit diff
path: root/string/bug-strchr1.c
blob: 21155d8a7f5396c3d73ad76d6b0fcbf8bc2f863c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"