Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / block-with-predefinedexpr.c
blob5f2a285307a72749fbf0179e0859080821fd7152
1 // RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10 | FileCheck %s
3 void syslog(const char *, ...);
5 void handler(void(^)(void));
7 __attribute__((used))
8 static void (^spd)(void) = ^(void)
10 handler( ^(void){ syslog("%s", __FUNCTION__); } );
12 // CHECK: @__FUNCTION__.spd_block_invoke_2 = private unnamed_addr constant [19 x i8] c"spd_block_invoke_2\00"
13 // CHECK: define internal void @spd_block_invoke_2
14 // CHECK: @__FUNCTION__.spd_block_invoke_2