]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/profile/Linux/instrprof-dir.c
Vendor import of compiler-rt trunk r351319 (just before the release_80
[FreeBSD/FreeBSD.git] / test / profile / Linux / instrprof-dir.c
1 // RUN: %clang_pgogen -o %t %s
2 // RUN: env LLVM_PROFILE_FILE="%t.d/%m.profraw"
3 // RUN: rm -fr %t.d
4 // RUN: %run %t %t.d
5
6 #include <errno.h>
7 #include <unistd.h>
8
9 int main(int argc, char **argv) {
10   if (access(argv[1], F_OK) == 0)
11     return 1; // %t.d should not exist yet.
12   return !(errno == ENOENT);
13 }