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