[LVI] Add trunc to i1 handling. (#124480)
[llvm-project.git] / compiler-rt / test / asan / TestCases / Posix / strerror_r_test.cpp
blobe6df441770dfae3579103da0accdc6c853403546
1 // RUN: %clangxx_asan -O0 %s -o %t && %run %t
3 // Regression test for PR17138.
5 #include <assert.h>
6 #include <string.h>
7 #include <stdio.h>
9 int main() {
10 char buf[1024];
11 char *res = (char *)strerror_r(300, buf, sizeof(buf));
12 printf("%p\n", res);
13 return 0;