mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
19 lines
277 B
C
19 lines
277 B
C
|
/* Test case by Joseph S. Myers <jsm28@cam.ac.uk>. */
|
||
|
#define __USE_STRING_INLINES
|
||
|
#include <string.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int
|
||
|
main (void)
|
||
|
{
|
||
|
const char *a = "abc";
|
||
|
const char *b = a;
|
||
|
|
||
|
strpbrk (b++, "");
|
||
|
if (b != a + 1)
|
||
|
exit (1);
|
||
|
|
||
|
exit (0);
|
||
|
}
|