| Chris Lattner | 3c77a35 | 2010-06-22 00:03:40 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -S -emit-llvm -o - %s -finstrument-functions | FileCheck %s |
| 2 | |||||
| 3 | // CHECK: @test1 | ||||
| 4 | int 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 | ||||
| 12 | int test2(int) __attribute__((no_instrument_function)); | ||||
| 13 | int test2(int x) { | ||||
| 14 | // CHECK-NOT: __cyg_profile_func_enter | ||||
| 15 | // CHECK-NOT: __cyg_profile_func_exit | ||||
| 16 | // CHECK: ret | ||||
| 17 | return x; | ||||
| 18 | } | ||||