1*7c3d14c8STreehugger Robot // RUN: %clang %s -o %t && %run %t 2>&1 2*7c3d14c8STreehugger Robot 3*7c3d14c8STreehugger Robot #include <assert.h> 4*7c3d14c8STreehugger Robot #include <string.h> main(int argc,char ** argv)5*7c3d14c8STreehugger Robotint main(int argc, char **argv) { 6*7c3d14c8STreehugger Robot char *r = 0; 7*7c3d14c8STreehugger Robot char s1[] = "ab"; 8*7c3d14c8STreehugger Robot char s2[] = "b"; 9*7c3d14c8STreehugger Robot r = strstr(s1, s2); 10*7c3d14c8STreehugger Robot assert(r == s1 + 1); 11*7c3d14c8STreehugger Robot return 0; 12*7c3d14c8STreehugger Robot } 13