Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
llvm-project
/
compiler-rt
/
test
/
msan
/
stat64.cpp
blob: a1280a0de37d2ecc00b9db0e1e127bd178da3d7f [
file
] [
log
] [
blame
]
// REQUIRES: linux
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
#include
<cassert>
#include
<cstdlib>
#include
<sys/stat.h>
int
main
(
void
)
{
struct
stat64 st
;
if
(
stat64
(
"/dev/null"
,
&
st
))
exit
(
1
);
assert
(
S_ISCHR
(
st
.
st_mode
));
return
0
;
}