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