blob: d80385e2239abced40d6669d4011b5468ba1a3f7 [file] [log] [blame]
Chris Lattner7255a2d2010-06-22 00:03:40 +00001// 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}