brintos

brintos / llvm-project-archived public Read only

0
0
Text · 899 B · a997494 Raw
38 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s2// expected-no-diagnostics3// Do not issue error if 'ivar' used previously belongs to the inherited class4// and has same name as @dynalic property in current class.5 6typedef signed char BOOL;7 8@protocol IDEBuildable9@property (readonly) BOOL hasRecursiveDependencyCycle;10@end11 12@protocol IDEBuildableProduct <IDEBuildable>13@end14 15@interface IDEBuildableSupportMixIn 16@property (readonly) BOOL hasRecursiveDependencyCycle;17@end18 19@interface Xcode3TargetBuildable <IDEBuildable>20{21  IDEBuildableSupportMixIn *_buildableMixIn;22}23@end24 25@interface Xcode3TargetProduct : Xcode3TargetBuildable <IDEBuildableProduct>26@end27 28@implementation Xcode3TargetBuildable29- (BOOL)hasRecursiveDependencyCycle30{31    return [_buildableMixIn hasRecursiveDependencyCycle];32}33@end34 35@implementation Xcode3TargetProduct36@dynamic hasRecursiveDependencyCycle;37@end38