1 1.1 joerg // RUN: %clang_profgen -o %t -O3 %s 2 1.1 joerg // RUN: touch %t.profraw 3 1.1 joerg // RUN: chmod -w %t.profraw 4 1.1 joerg // RUN: LLVM_PROFILE_FILE=%t.profraw LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s 5 1.1 joerg // RUN: chmod +w %t.profraw 6 1.1 joerg 7 1.1 joerg int main(int argc, const char *argv[]) { 8 1.1 joerg if (argc < 2) 9 1.1 joerg return 1; 10 1.1 joerg return 0; 11 1.1 joerg } 12 1.1 joerg // CHECK: LLVM Profile: Failed to write file 13