brintos

brintos / llvm-project-archived public Read only

0
0
Text · 238 B · 8e3a6d5 Raw
17 lines · cpp
1// REQUIRES: linux2// RUN: %clangxx_msan -O0 %s -o %t && %run %t3 4#include <stdlib.h>5#include <sys/stat.h>6 7int main(void) {8  struct stat64 st;9  if (fstat64(0, &st))10    exit(1);11 12  if (S_ISBLK(st.st_mode))13    exit(0);14 15  return 0;16}17