repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[LVI] Add trunc to i1 handling. (#124480)
[llvm-project.git]
/
compiler-rt
/
test
/
asan
/
TestCases
/
Posix
/
strerror_r_test.cpp
blob
e6df441770dfae3579103da0accdc6c853403546
1
// RUN: %clangxx_asan -O0 %s -o %t && %run %t
2
3
// Regression test for PR17138.
4
5
#include <assert.h>
6
#include <string.h>
7
#include <stdio.h>
8
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
;
14
}