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
[LoopVectorizer] Add support for chaining partial reductions (#120272)
[llvm-project.git]
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
Posix
/
lstat.cpp
blob
75b196183ce0afbee1536206f8ae693ee9e4eb25
1
// RUN: %clangxx -O0 -g %s -o %t && %run %t
2
3
#include <assert.h>
4
#include <stdlib.h>
5
#include <sys/stat.h>
6
7
int
main
(
void
) {
8
struct
stat st
;
9
10
assert
(!
lstat
(
"/dev/null"
, &
st
));
11
#if defined(__sun__) && defined(__svr4__)
12
assert
(
S_ISLNK
(
st
.
st_mode
));
13
#else
14
assert
(
S_ISCHR
(
st
.
st_mode
));
15
#endif
16
17
return
0
;
18
}