1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s 2*f4a2713aSLionel Sambuc// expected-no-diagnostics 3*f4a2713aSLionel Sambuc// Do not issue error if 'ivar' used previously belongs to the inherited class 4*f4a2713aSLionel Sambuc// and has same name as @dynalic property in current class. 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuctypedef signed char BOOL; 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc@protocol IDEBuildable 9*f4a2713aSLionel Sambuc@property (readonly) BOOL hasRecursiveDependencyCycle; 10*f4a2713aSLionel Sambuc@end 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc@protocol IDEBuildableProduct <IDEBuildable> 13*f4a2713aSLionel Sambuc@end 14*f4a2713aSLionel Sambuc 15*f4a2713aSLionel Sambuc@interface IDEBuildableSupportMixIn 16*f4a2713aSLionel Sambuc@property (readonly) BOOL hasRecursiveDependencyCycle; 17*f4a2713aSLionel Sambuc@end 18*f4a2713aSLionel Sambuc 19*f4a2713aSLionel Sambuc@interface Xcode3TargetBuildable <IDEBuildable> 20*f4a2713aSLionel Sambuc{ 21*f4a2713aSLionel Sambuc IDEBuildableSupportMixIn *_buildableMixIn; 22*f4a2713aSLionel Sambuc} 23*f4a2713aSLionel Sambuc@end 24*f4a2713aSLionel Sambuc 25*f4a2713aSLionel Sambuc@interface Xcode3TargetProduct : Xcode3TargetBuildable <IDEBuildableProduct> 26*f4a2713aSLionel Sambuc@end 27*f4a2713aSLionel Sambuc 28*f4a2713aSLionel Sambuc@implementation Xcode3TargetBuildable 29*f4a2713aSLionel Sambuc- (BOOL)hasRecursiveDependencyCycle 30*f4a2713aSLionel Sambuc{ 31*f4a2713aSLionel Sambuc return [_buildableMixIn hasRecursiveDependencyCycle]; 32*f4a2713aSLionel Sambuc} 33*f4a2713aSLionel Sambuc@end 34*f4a2713aSLionel Sambuc 35*f4a2713aSLionel Sambuc@implementation Xcode3TargetProduct 36*f4a2713aSLionel Sambuc@dynamic hasRecursiveDependencyCycle; 37*f4a2713aSLionel Sambuc@end 38