Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
cstdlib
/
readlink-001.c
blob: 0dfe30a448c2271caf565c9467fd50903a79257e [
file
] [
log
] [
blame
]
// RUN: test.sh -p -t %t %s
#include
<limits.h>
#include
<unistd.h>
// Ensure that a correct use of readlink() is not flagged as an error.
int
main
()
{
char
buffer
[
PATH_MAX
];
readlink
(
"/etc/passwd"
,
buffer
,
PATH_MAX
);
return
0
;
}