[LoopVectorizer] Add support for chaining partial reductions (#120272)
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / Posix / lstat.cpp
blob75b196183ce0afbee1536206f8ae693ee9e4eb25
1 // RUN: %clangxx -O0 -g %s -o %t && %run %t
3 #include <assert.h>
4 #include <stdlib.h>
5 #include <sys/stat.h>
7 int main(void) {
8 struct stat st;
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
17 return 0;