Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fblocks -emit-llvm -o - %s | FileCheck %s
      2 // rdar: // 7860965
      3 
      4 extern void PRINTF(const char *);
      5 extern void B(void (^)(void));
      6 
      7 int main()
      8 {
      9     PRINTF(__func__);
     10     B(
     11        ^{
     12             PRINTF(__func__);
     13         }
     14     );
     15     return 0; // not reached
     16 }
     17 
     18 // CHECK: @__func__.__main_block_invoke = private unnamed_addr constant [20 x i8] c"__main_block_invoke\00"
     19 // CHECK: call void @PRINTF({{.*}}@__func__.__main_block_invoke
     20