Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / strcspn.c
blob066a27bbdf2cfdeb26c756254ebd3263b5793048
1 // RUN: %clang %s -o %t && %run %t 2>&1
3 #include <assert.h>
4 #include <string.h>
6 int main(int argc, char **argv) {
7 size_t r;
8 char s1[] = "ad";
9 char s2[] = "cd";
10 r = strcspn(s1, s2);
11 assert(r == 1);
12 return 0;