brintos

brintos / llvm-project-archived public Read only

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