bug-strpbrk1.c 305 B

12345678910111213141516171819
  1. /* 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. int
  8. main (void)
  9. {
  10. const char *a = "abc";
  11. const char *b = a;
  12. strpbrk (b++, "");
  13. if (b != a + 1)
  14. return 1;
  15. return 0;
  16. }