Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjC / objc2-strong-cast-block-import.m
blob905d1247f6fc30a4de92b29207117650d22d6d5d
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-gc-only -fblocks  -emit-llvm -o - %s | FileCheck %s
3 @interface Test {
4 @package
5     Test ** __strong objects;
7 @end
9 id newObject(void);
10 void runWithBlock(void(^)(int i));
12 @implementation Test
14 - (void)testWithObjectInBlock {
15     Test **children = objects;
16     runWithBlock(^(int i){
17         children[i] = newObject();
18     });
21 @end
22 // CHECK: call ptr @objc_assign_strongCast
23 // CHECK: call ptr @objc_assign_strongCast