Sign in
llvm
/
llvm-archive
/
8f5549c70aebe1959d31d684f9f67236e1a7facb
/
.
/
safecode
/
test
/
cstdlib
/
getcwd-002.c
blob: 3cd61f8393aaebbcd4ee32ba9843553737dfb6a1 [
file
] [
log
] [
blame
]
// RUN: test.sh -p -t %t %s
#include
<unistd.h>
//
// getcwd() with a NULL buffer parameter; this is supported behavior by many
// implementations and returns allocated memory.
//
int
main
()
{
char
*
cwd
=
getcwd
(
NULL
,
100
);
return
0
;
}