This reverts commit d618f1c3b12effd0c2bdb7d02108d3551f389d3d. This commit wasn't reviewed ahead of time and significant concerns were raised immediately after it landed. According to our developer policy this warrants immediate revert of the commit. https://llvm.org/docs/DeveloperPolicy.html#patch-reversion-policy Differential Revision: https://reviews.llvm.org/D155509
16 lines
493 B
C
16 lines
493 B
C
// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10 | FileCheck %s
|
|
// rdar://18961148
|
|
|
|
void syslog(const char *, ...);
|
|
|
|
void handler(void(^)(void));
|
|
|
|
__attribute__((used))
|
|
static void (^spd)(void) = ^(void)
|
|
{
|
|
handler( ^(void){ 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
|