Debian Codegraph @

clang/test/CodeGen/func-in-block.c

raw
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fblocks -emit-llvm -o - %s | FileCheck %s
2
3 extern void PRINTF(const char *);
4 extern void B(void (^)(void));
5
6 int main(void)
7 {
8 PRINTF(__func__);
9 B(
10 ^{
11 PRINTF(__func__);
12 }
13 );
14 return 0; // not reached
15 }
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_invoke