summaryrefslogtreecommitdiff
path: root/test/profile/Linux/instrprof-dir.c
blob: 9d9af6daf5138176ebc8c9438bf69a849b92d42c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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);
}