1// RUN: %clang_cc1 -S -emit-llvm -o - %s -finstrument-functions | FileCheck %s
2
3// CHECK: @test1
4int test1(int x) {
5// CHECK: __cyg_profile_func_enter
6// CHECK: __cyg_profile_func_exit
7// CHECK: ret
8  return x;
9}
10
11// CHECK: @test2
12int test2(int) __attribute__((no_instrument_function));
13int test2(int x) {
14// CHECK-NOT: __cyg_profile_func_enter
15// CHECK-NOT: __cyg_profile_func_exit
16// CHECK: ret
17  return x;
18}
19