Update.
[platform/upstream/glibc.git] / string / bug-strpbrk1.c
1 /* Test case by Joseph S. Myers <jsm28@cam.ac.uk>.  */
2 #define __USE_STRING_INLINES
3 #include <string.h>
4 #include <stdlib.h>
5 #include <stdio.h>
6
7 int
8 main (void)
9 {
10   const char *a = "abc";
11   const char *b = a;
12
13   strpbrk (b++, "");
14   if (b != a + 1)
15     exit (1);
16
17   exit (0);
18 }