Patrick Beard | b2f6820 | 2012-04-06 18:12:22 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s |
Fariborz Jahanian | cdaa6a8 | 2010-08-24 18:48:05 +0000 | [diff] [blame] | 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 |