Files
clang-p2996/compiler-rt/test/profile/Linux/instrprof-dir.c
Xinliang David Li f2d9481028 [PGO] Delay profile dir creation until write
Differential Revision: http://reviews.llvm.org/D29960

llvm-svn: 295108
2017-02-14 21:39:55 +00:00

14 lines
304 B
C

// RUN: %clang_pgogen -o %t %s
// RUN: env LLVM_PROFILE_FILE="%t.d/%m.profraw"
// RUN: rm -fr %t.d
// RUN: %run %t %t.d
#include <errno.h>
#include <unistd.h>
int main(int argc, char **argv) {
if (access(argv[1], F_OK) == 0)
return 1; // %t.d should not exist yet.
return !(errno == ENOENT);
}