[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / block-with-predefinedexpr.c
blobfb56771529747e8bc5b0a75913caf829582ffbfc
1 // RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10 | FileCheck %s
2 // rdar://18961148
4 void syslog(const char *, ...);
6 void handler(void(^)(void));
8 __attribute__((used))
9 static void (^spd)(void) = ^(void)
11 handler( ^(void){ syslog("%s", __FUNCTION__); } );
13 // CHECK: @__FUNCTION__.spd_block_invoke_2 = private unnamed_addr constant [19 x i8] c"spd_block_invoke_2\00"
14 // CHECK: define internal void @spd_block_invoke_2
15 // CHECK: @__FUNCTION__.spd_block_invoke_2