aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Profile/c-avoid-direct-call.c
blob: ee75886327f1f99554902224fd0248fea89061aa (plain)
1
2
3
4
5
6
7
8
9
10
11
// Check the value profiling intrinsics emitted by instrumentation.

// 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

void foo();

int main(void) {
// CHECK-NOT: call void @__llvm_profile_instrument_target
  foo(21);
  return 0;
}