2000-10-30 05:08:58 +01:00
|
|
|
/* Test case by Joseph S. Myers <jsm28@cam.ac.uk>. */
|
2000-10-31 05:38:55 +01:00
|
|
|
#undef __USE_STRING_INLINES
|
2000-10-30 05:08:58 +01:00
|
|
|
#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)
|
2000-12-31 11:52:32 +01:00
|
|
|
return 1;
|
2000-10-30 05:08:58 +01:00
|
|
|
|
2000-12-31 11:52:32 +01:00
|
|
|
return 0;
|
2000-10-30 05:08:58 +01:00
|
|
|
}
|