blob: 5b40d854898e45449a79c6d9d542d99d52515d91 [file] [log] [blame]
Patrick Beardb2f68202012-04-06 18:12:22 +00001// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
Fariborz Jahaniancdaa6a82010-08-24 18:48:05 +00002// 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
5typedef 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