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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
msan
/
fstat.cpp
blob
83f97054cea76cd6457cfc3d9e8549097521e57f
1
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
2
3
#include <sys/stat.h>
4
#include <stdlib.h>
5
6
int
main
(
void
) {
7
struct
stat st
;
8
if
(
fstat
(
0
, &
st
))
9
exit
(
1
);
10
11
if
(
S_ISBLK
(
st
.
st_mode
))
12
exit
(
0
);
13
14
return
0
;
15
}