summaryrefslogtreecommitdiff
path: root/test/profile/instrprof-error.c
blob: 3297c9d8840ae85d2049f4d52ebef42514e6a875 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_profgen -o %t -O3 %s
// RUN: env LLVM_PROFILE_FILE=%t/  %run %t 1 2>&1 | FileCheck %s

int main(int argc, const char *argv[]) {
  if (argc < 2)
    return 1;
  return 0;
}
// CHECK: LLVM Profile Error: Failed to write file