Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjCXX / refence-assign-write-barrier.mm
blob0f81d9928fce0ad3f22bc5ed7cd4d83239d333c2
1 // RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s
3 @interface NSArray 
4 - (NSArray*) retain;
5 - (void) release;
6 @end
8 void NSAssignArray(NSArray*& target, NSArray* newValue)
10         if (target == newValue)
11                 return;
13         NSArray* oldValue = target;
15         target = [newValue retain];
17         [oldValue release];
19 // CHECK: {{call.* @objc_assign_strongCast}}