forked from OSchip/llvm-project
13 lines
346 B
C
13 lines
346 B
C
|
// RUN: %clang_profgen -o %t -O3 %s
|
||
|
// RUN: touch %t.profraw
|
||
|
// RUN: chmod -w %t.profraw
|
||
|
// RUN: LLVM_PROFILE_FILE=%t.profraw LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s
|
||
|
// RUN: chmod +w %t.profraw
|
||
|
|
||
|
int main(int argc, const char *argv[]) {
|
||
|
if (argc < 2)
|
||
|
return 1;
|
||
|
return 0;
|
||
|
}
|
||
|
// CHECK: LLVM Profile: Failed to write file
|