brintos

brintos / llvm-project-archived public Read only

0
0
Text · 215 B · 83f9705 Raw
16 lines · cpp
1// RUN: %clangxx_msan -O0 %s -o %t && %run %t2 3#include <sys/stat.h>4#include <stdlib.h>5 6int 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}16