blob: 28238b0f50a588ed5719f0fd802a87466eed3871 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* Test case by Joseph S. Myers <jsm28@cam.ac.uk>. */
2#undef __USE_STRING_INLINES
3#define __USE_STRING_INLINES
4#include <string.h>
5#include <stdlib.h>
6#include <stdio.h>
7
8int
9main (void)
10{
11 const char *a = "abc";
12 const char *b = a;
13
14 strpbrk (b++, "");
15 if (b != a + 1)
16 return 1;
17
18 return 0;
19}