Fix the clang-wpa example.
[clang.git] / test / SemaObjC / property-and-ivar-use.m
blob70e553469907e4f4c578776379445989cc846d23
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.
5 typedef signed char BOOL;
7 @protocol IDEBuildable
8 @property (readonly) BOOL hasRecursiveDependencyCycle;
9 @end
11 @protocol IDEBuildableProduct <IDEBuildable>
12 @end
14 @interface IDEBuildableSupportMixIn 
15 @property (readonly) BOOL hasRecursiveDependencyCycle;
16 @end
18 @interface Xcode3TargetBuildable <IDEBuildable>
20   IDEBuildableSupportMixIn *_buildableMixIn;
22 @end
24 @interface Xcode3TargetProduct : Xcode3TargetBuildable <IDEBuildableProduct>
25 @end
27 @implementation Xcode3TargetBuildable
28 - (BOOL)hasRecursiveDependencyCycle
30     return [_buildableMixIn hasRecursiveDependencyCycle];
32 @end
34 @implementation Xcode3TargetProduct
35 @dynamic hasRecursiveDependencyCycle;
36 @end