1 // REQUIRES: x86-64-registered-target 2 // RUN: %clang_cc1 -masm-verbose -S -fblocks -g -triple x86_64-apple-darwin10 %s -o - | FileCheck %s 3 extern void foo(void(^)(void)); 4 5 // CHECK: .ascii "__destroy_helper_block_" ## DW_AT_name 6 7 @interface NSObject { 8 struct objc_object *isa; 9 } 10 @end 11 12 @interface A:NSObject @end 13 @implementation A 14 - (void) helper { 15 int master = 0; 16 __block int m2 = 0; 17 __block int dbTransaction = 0; 18 int (^x)(void) = ^(void) { (void) self; 19 (void) master; 20 (void) dbTransaction; 21 m2++; 22 return m2; 23 24 }; 25 master = x(); 26 } 27 @end 28 29 void foo(void(^x)(void)) {} 30 31