Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +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);
}