Clang Project

clang_source_code/test/Profile/c-avoid-direct-call.c
1// Check the value profiling instrinsics emitted by instrumentation.
2
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
4
5void foo();
6
7int main(void) {
8// CHECK-NOT: call void @__llvm_profile_instrument_target
9  foo(21);
10  return 0;
11}
12