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