1 // RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | FileCheck -check-prefix CHECK-LP64 %s
2 // RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | FileCheck -check-prefix CHECK-LP32 %s
5 - (void)MyView_sharedInit;
8 void foo(MyView *(^obj)(void)) ;
10 @implementation MyView
11 - (void)MyView_sharedInit {
13 __block __weak MyView *weakSelf = self;
22 // CHECK-LP64: call ptr @objc_read_weak
23 // CHECK-LP32: call ptr @objc_read_weak