blob: adec3762012bb8746ed643531f12a11c2569906d [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-gc-only -fblocks -emit-llvm -o - %s | FileCheck %s
Fariborz Jahaniane3f83492011-09-23 18:57:30 +00002// rdar://10150823
3
4@interface Test {
5@package
6 Test ** __strong objects;
7}
8@end
9
10id newObject();
11void runWithBlock(void(^)(int i));
12
13@implementation Test
14
15- (void)testWithObjectInBlock {
16 Test **children = objects;
17 runWithBlock(^(int i){
18 children[i] = newObject();
19 });
20}
21
22@end
23// CHECK: call i8* @objc_assign_strongCast
24// CHECK: call i8* @objc_assign_strongCast
25