repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git]
/
compiler-rt
/
test
/
msan
/
stat64.cpp
blob
a1280a0de37d2ecc00b9db0e1e127bd178da3d7f
1
// REQUIRES: linux
2
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
3
4
#include <cassert>
5
#include <cstdlib>
6
#include <sys/stat.h>
7
8
int
main
(
void
) {
9
struct
stat64 st
;
10
if
(
stat64
(
"/dev/null"
, &
st
))
11
exit
(
1
);
12
13
assert
(
S_ISCHR
(
st
.
st_mode
));
14
15
return
0
;
16
}