1 // RUN: %clang_cc1 -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-functions -disable-llvm-passes | FileCheck %s
2 // RUN: %clang_cc1 -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-function-entry-bare -disable-llvm-passes | FileCheck -check-prefix=BARE %s
5 // CHECK: @test1(i32 {{.*}}%x) #[[ATTR1:[0-9]+]]
8 // BARE: @test1(i32 {{.*}}%x) #[[ATTR1:[0-9]+]]
13 int test2(int) __attribute__((no_instrument_function
));
15 // CHECK: @test2(i32 {{.*}}%x) #[[ATTR2:[0-9]+]]
18 // BARE: @test2(i32 {{.*}}%x) #[[ATTR2:[0-9]+]]
23 // CHECK: attributes #[[ATTR1]] =
24 // CHECK-SAME: "instrument-function-entry"="__cyg_profile_func_enter"
25 // CHECK-SAME: "instrument-function-exit"="__cyg_profile_func_exit"
27 // BARE: attributes #[[ATTR1]] =
28 // BARE-SAME: "instrument-function-entry-inlined"="__cyg_profile_func_enter_bare"
30 // CHECK: attributes #[[ATTR2]] =
31 // CHECK-NOT: "instrument-function-entry"
33 // BARE: attributes #[[ATTR2]] =
34 // BARE-NOT: "instrument-function-entry"