1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s 2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc@interface PBXTarget 5*f4a2713aSLionel Sambuc{ 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel SambucPBXTarget * __weak _lastKnownTarget; 8*f4a2713aSLionel SambucPBXTarget * __weak _KnownTarget; 9*f4a2713aSLionel SambucPBXTarget * result; 10*f4a2713aSLionel Sambuc} 11*f4a2713aSLionel Sambuc- Meth; 12*f4a2713aSLionel Sambuc@end 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambucextern void foo(); 15*f4a2713aSLionel Sambuc@implementation PBXTarget 16*f4a2713aSLionel Sambuc- Meth { 17*f4a2713aSLionel Sambuc if (_lastKnownTarget != result) 18*f4a2713aSLionel Sambuc foo(); 19*f4a2713aSLionel Sambuc if (result != _lastKnownTarget) 20*f4a2713aSLionel Sambuc foo(); 21*f4a2713aSLionel Sambuc 22*f4a2713aSLionel Sambuc if (_lastKnownTarget != _KnownTarget) 23*f4a2713aSLionel Sambuc foo(); 24*f4a2713aSLionel Sambuc} 25*f4a2713aSLionel Sambuc 26*f4a2713aSLionel Sambuc@end 27