1*67e74705SXin Li // RUN: %clang_cc1 -S -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-functions | FileCheck %s 2*67e74705SXin Li 3*67e74705SXin Li // CHECK: @test1 test1(int x)4*67e74705SXin Liint test1(int x) { 5*67e74705SXin Li // CHECK: call void @__cyg_profile_func_enter({{.*}}, !dbg 6*67e74705SXin Li // CHECK: call void @__cyg_profile_func_exit({{.*}}, !dbg 7*67e74705SXin Li // CHECK: ret 8*67e74705SXin Li return x; 9*67e74705SXin Li } 10*67e74705SXin Li 11*67e74705SXin Li // CHECK: @test2 12*67e74705SXin Li int test2(int) __attribute__((no_instrument_function)); test2(int x)13*67e74705SXin Liint test2(int x) { 14*67e74705SXin Li // CHECK-NOT: __cyg_profile_func_enter 15*67e74705SXin Li // CHECK-NOT: __cyg_profile_func_exit 16*67e74705SXin Li // CHECK: ret 17*67e74705SXin Li return x; 18*67e74705SXin Li } 19