Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / NetBSD / strmode.cpp
blobb8d7d8ccf5a20041bc5d0112dbcd49f0a5098c0d
1 // RUN: %clangxx -O0 -g %s -o %t && %run %t
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <sys/stat.h>
6 #include <unistd.h>
8 int main(void) {
9 struct stat st;
10 char modep[15];
12 if (stat("/etc/hosts", &st))
13 exit(1);
15 strmode(st.st_mode, modep);
17 printf("%s\n", modep);
19 return 0;