Make test more lenient for custom clang version strings
[llvm-project.git] / compiler-rt / test / profile / Linux / instrprof-dir.c
blob9d9af6daf5138176ebc8c9438bf69a849b92d42c
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
6 #include <errno.h>
7 #include <unistd.h>
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);