Mercurial > hg > CbC > CbC_llvm
view compiler-rt/test/sanitizer_common/TestCases/strpbrk.c @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang %s -o %t && %run %t 2>&1 #include <assert.h> #include <string.h> int main(int argc, char **argv) { char *r = 0; char s1[] = "ad"; char s2[] = "cd"; r = strpbrk(s1, s2); assert(r == s1 + 1); return 0; }