[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Profile / c-generate.c
blob70ab757e64715c1a9818bc139f9b880c1ced7d19
1 // Check that the -fprofile-instrument-path= form works.
2 // RUN: %clang_cc1 -main-file-name c-generate.c %s -o - -emit-llvm -fprofile-instrument=clang -fprofile-instrument-path=c-generate-test.profraw | FileCheck %s --check-prefix=PROF-INSTR-PATH
3 // RUN: %clang_cc1 %s -o - -emit-llvm -fprofile-instrument=none | FileCheck %s --check-prefix=PROF-INSTR-NONE
4 // RUN: not %clang_cc1 %s -o - -emit-llvm -fprofile-instrument=garbage 2>&1 | FileCheck %s --check-prefix=PROF-INSTR-GARBAGE
5 //
6 // PROF-INSTR-PATH: constant [24 x i8] c"c-generate-test.profraw\00"
7 //
8 // PROF-INSTR-NONE-NOT: __llvm_prf
9 //
10 // PROF-INSTR-GARBAGE: invalid value 'garbage' in '-fprofile-instrument=garbage'
12 int main(void) {
13 return 0;