Home | History | Annotate | Download | only in Profile
      1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.9.0 -emit-llvm -main-file-name cxx-linkage.cpp %s -o - -fprofile-instr-generate | FileCheck %s
      2 
      3 // CHECK: @__llvm_profile_name__Z3foov = private constant [7 x i8] c"_Z3foov"
      4 // CHECK: @__llvm_profile_name__Z8foo_weakv = weak hidden constant [12 x i8] c"_Z8foo_weakv"
      5 // CHECK: @__llvm_profile_name_main = private constant [4 x i8] c"main"
      6 // CHECK: @__llvm_profile_name__Z10foo_inlinev = linkonce_odr hidden constant [15 x i8] c"_Z10foo_inlinev"
      7 
      8 void foo(void) { }
      9 
     10 void foo_weak(void) __attribute__((weak));
     11 void foo_weak(void) { if (0){} if (0){} if (0){} if (0){} }
     12 
     13 inline void foo_inline(void);
     14 int main(void) {
     15   foo();
     16   foo_inline();
     17   foo_weak();
     18   return 0;
     19 }
     20 
     21 inline void foo_inline(void) { if (0){} if (0){} if (0){} if (0){} if (0){} if (0){}}
     22