Justin Bogner | 00270df | 2015-01-22 02:17:23 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -emit-llvm -o - %s | FileCheck %s |
| 2 | |
| 3 | // Since foo is never emitted, there should not be a profile name for it. |
| 4 | |
| 5 | // CHECK-NOT: @__llvm_profile_name_foo = |
| 6 | // CHECK: @__llvm_profile_name_bar = |
| 7 | // CHECK-NOT: @__llvm_profile_name_foo = |
| 8 | |
| 9 | #ifdef IS_SYSHEADER |
| 10 | |
| 11 | #pragma clang system_header |
| 12 | inline int foo() { return 0; } |
| 13 | |
| 14 | #else |
| 15 | |
| 16 | #define IS_SYSHEADER |
| 17 | #include __FILE__ |
| 18 | |
| 19 | int bar() { return 0; } |
| 20 | |
| 21 | #endif |