repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make test more lenient for custom clang version strings
[llvm-project.git]
/
compiler-rt
/
test
/
profile
/
Linux
/
instrprof-dir.c
blob
9d9af6daf5138176ebc8c9438bf69a849b92d42c
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
}