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
469 B
16 lines
469 B
// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10 | FileCheck %s
|
|
// rdar://18961148
|
|
|
|
void syslog(const char *, ...);
|
|
|
|
void handler( );
|
|
|
|
__attribute__((used))
|
|
static void (^spd)() = ^()
|
|
{
|
|
handler( ^(){ syslog("%s", __FUNCTION__); } );
|
|
};
|
|
// CHECK: @__FUNCTION__.spd_block_invoke_2 = private unnamed_addr constant [19 x i8] c"spd_block_invoke_2\00"
|
|
// CHECK: define internal void @spd_block_invoke_2
|
|
// CHECK: @__FUNCTION__.spd_block_invoke_2
|