1// RUN: %clang_profgen -o %t -O3 %s
2// RUN: env LLVM_PROFILE_FILE=%t/ %run %t 1 2>&1 | FileCheck %s
3
4int main(int argc, const char *argv[]) {
5 if (argc < 2)
6 return 1;
7 return 0;
8}
9// CHECK: LLVM Profile Error: Failed to write file
10

source code of compiler-rt/test/profile/instrprof-error.c