xref: /aosp_15_r20/external/compiler-rt/test/sanitizer_common/TestCases/strpbrk.c (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1 // RUN: %clang %s -o %t && %run %t 2>&1
2 
3 #include <assert.h>
4 #include <string.h>
5 
6 
main(int argc,char ** argv)7 int main(int argc, char **argv) {
8   char *r = 0;
9   char s1[] = "ad";
10   char s2[] = "cd";
11   r = strpbrk(s1, s2);
12   assert(r == s1 + 1);
13   return 0;
14 }
15