[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Profile / c-avoid-direct-call.c
blobee75886327f1f99554902224fd0248fea89061aa
1 // Check the value profiling intrinsics emitted by instrumentation.
3 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-avoid-direct-call.c %s -o - -emit-llvm -fprofile-instrument=clang -mllvm -enable-value-profiling | FileCheck %s
5 void foo();
7 int main(void) {
8 // CHECK-NOT: call void @__llvm_profile_instrument_target
9 foo(21);
10 return 0;