1 // RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s
5 void Test12759433(void) {
6 __block __unsafe_unretained NSString *uuByref = (__bridge NSString *)(void*)0x102030405060708;
7 void (^block)(void) = ^{ uuByref = 0; };
10 // CHECK: %struct.__block_byref_uuByref = type { ptr, ptr, i32, i32, ptr }
12 __block __weak id wid;
19 __unsafe_unretained id unsunr;
22 // Inline flag for BYREF variable layout (1107296256): BLOCK_BYREF_HAS_COPY_DISPOSE BLOCK_BYREF_LAYOUT_WEAK
23 // CHECK: store i32 1107296256, ptr [[T0:%.*]]
26 // Inline flag for BYREF variable layout (536870912): BLOCK_BYREF_LAYOUT_NON_OBJECT
27 // CHECK: store i32 536870912, ptr [[T1:%.*]]
30 // Inline flag for BYREF variable layout (838860800): BLOCK_BYREF_HAS_COPY_DISPOSE BLOCK_BYREF_LAYOUT_STRONG
31 // CHECK: store i32 838860800, ptr [[T2:%.*]]
34 // Inline flag for BYREF variable layout (268435456): BLOCK_BYREF_LAYOUT_EXTENDED
35 // BYREF variable layout: BL_NON_OBJECT_WORD:3, BL_UNRETAINED:1, BL_OPERATOR:0
36 // CHECK: store i32 268435456, ptr [[T3:%.*]]
43 typedef char mds_path_t[1024];
44 void directVolumePerfWaitForStoreState(void)
46 __block mds_path_t path;