You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
381 B
16 lines
381 B
4 months ago
|
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -fblocks -triple %itanium_abi_triple %s -o - | FileCheck %s
|
||
|
|
||
|
// CHECK: !DISubprogram(name: "___Z1fU13block_pointerFviE_block_invoke", linkageName: "___Z1fU13block_pointerFviE_block_invoke"
|
||
|
void g(void (^call)(int));
|
||
|
|
||
|
void f(void (^callback)(int)) {
|
||
|
g(^(int x) {
|
||
|
callback(x);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
void h() {
|
||
|
f(^(int x){
|
||
|
});
|
||
|
}
|