Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
safecode
/
test
/
cstdlib
/
realpath-003.c
blob: cffe125a6e001bf237183a90894200c6ddeeb4d9 [
file
] [
log
] [
blame
]
// RUN: test.sh -p -t %t %s
#include
<unistd.h>
#include
<stdlib.h>
// Ensure that a correct use of realpath() is not flagged as an error.
int
main
()
{
char
*
buffer
=
malloc
(
24
);
realpath
(
"/etc/passwd"
,
buffer
);
return
0
;
}