brintos

brintos / llvm-project-archived public Read only

0
0
Text · 464 B · b7784e5 Raw
19 lines · c
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fblocks -emit-llvm -o - %s | FileCheck %s2 3extern void PRINTF(const char *);4extern void B(void (^)(void));5 6int main(void)7{8    PRINTF(__func__);9    B(10       ^{11            PRINTF(__func__);12        }13    );14    return 0; // not reached15}16 17// CHECK: @__func__.__main_block_invoke = private unnamed_addr constant [18 x i8] c"main_block_invoke\00"18// CHECK: call void @PRINTF({{.*}}@__func__.__main_block_invoke19