[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / fcs-profile-generate.c
blob6be7f758c3e6d4ccb6b4202bd5aee4738791fead
1 // RUN: %clang -### -c -fprofile-use=a.profdata -fcs-profile-generate %s 2>&1 | FileCheck %s
2 // CHECK: "-fprofile-instrument=csllvm"
3 // CHECK-NOT: "-fprofile-instrument-path=
4 // CHECK-SAME: "-fprofile-instrument-use-path=a.profdata"
6 // RUN: %clang -### -c -fprofile-use=a.profdata -fcs-profile-generate=dir %s 2>&1 | FileCheck %s --check-prefix=CHECK1
7 // CHECK1: "-fprofile-instrument=csllvm"{{.*}} "-fprofile-instrument-path=dir{{/|\\\\}}default_%m.profraw" "-fprofile-instrument-use-path=a.profdata"
9 /// Degradation case. This usage does not make much sense.
10 // RUN: %clang -### -c -fcs-profile-generate %s 2>&1 | FileCheck %s --check-prefix=NOUSE
11 // NOUSE: "-fprofile-instrument=csllvm"
12 // NOUSE-NOT: "-fprofile-instrument-path=
14 // RUN: %clang -### -c -fprofile-generate -fcs-profile-generate %s 2>&1 | FileCheck %s --check-prefix=CONFLICT
15 // CONFLICT: error: invalid argument '-fcs-profile-generate' not allowed with '-fprofile-generate'