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