Sign in
llvm
/
llvm-archive
/
8f5549c70aebe1959d31d684f9f67236e1a7facb
/
.
/
safecode
/
test
/
cstdlib
/
realpath-002.c
blob: 5a6e008ec3f1c39c524dcfbbd76e01d77d3ae706 [
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.
char
buffer
[
PATH_MAX
];
int
main
()
{
realpath
(
"/etc/passwd"
,
buffer
);
return
0
;
}