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