1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-gc-only -fblocks -emit-llvm -o - %s | FileCheck %s
5 Test ** __strong objects;
10 void runWithBlock(void(^)(int i));
14 - (void)testWithObjectInBlock {
15 Test **children = objects;
16 runWithBlock(^(int i){
17 children[i] = newObject();
22 // CHECK: call ptr @objc_assign_strongCast
23 // CHECK: call ptr @objc_assign_strongCast