Steve Naroff | 3d2c22b | 2008-06-05 13:55:23 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | typedef signed char BOOL; |
| 3 | @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator; |
| 4 | |
| 5 | @protocol NSObject |
| 6 | - (BOOL) isEqual:(id) object; |
| 7 | @end |
| 8 | |
| 9 | @protocol NSCoding |
| 10 | - (void) encodeWithCoder:(NSCoder *) aCoder; |
| 11 | @end |
| 12 | |
| 13 | @interface NSObject < NSObject > {} @end |
| 14 | |
| 15 | typedef float CGFloat; |
| 16 | |
| 17 | @interface NSResponder:NSObject < NSCoding > {} @end |
| 18 | |
| 19 | @class XCElementView; |
| 20 | |
| 21 | typedef struct _XCElementInset {} XCElementInset; |
| 22 | |
| 23 | @protocol XCElementP < NSObject > |
| 24 | -(BOOL) vertical; |
| 25 | @end |
| 26 | |
| 27 | @protocol XCElementDisplayDelegateP; |
| 28 | @protocol XCElementTabMarkerP; |
| 29 | |
| 30 | typedef NSObject < XCElementTabMarkerP > XCElementTabMarker; |
| 31 | |
| 32 | @protocol XCElementTabberP < XCElementP > |
| 33 | -(void) setMarker:(XCElementTabMarker *) marker; |
| 34 | @end |
| 35 | |
| 36 | typedef NSObject < XCElementTabberP > XCElementTabber; |
| 37 | |
| 38 | @protocol XCElementTabMarkerP < NSObject > |
| 39 | @property(nonatomic) |
| 40 | BOOL variableSized; |
| 41 | @end |
| 42 | |
| 43 | @protocol XCElementJustifierP < XCElementP > |
| 44 | -(void) setHJustification:(CGFloat) hJust; |
| 45 | @end |
| 46 | |
| 47 | typedef NSObject < XCElementJustifierP > XCElementJustifier; |
| 48 | @interface XCElementImp:NSObject < XCElementP > {} |
| 49 | @end |
| 50 | |
| 51 | @class XCElementImp; |
| 52 | |
| 53 | @interface XCElementTabberImp:XCElementImp < XCElementTabberP > { |
| 54 | XCElementTabMarker *_marker; |
| 55 | } |
| 56 | @end |
| 57 | |
| 58 | @implementation XCElementTabberImp |
| 59 | - (void) setMarker:(XCElementTabMarker *) marker { |
| 60 | if (_marker && _marker.variableSized) { |
| 61 | } |
| 62 | } |
| 63 | - vertical { return self; } |
| 64 | - (BOOL)isEqual:x { return 1; } |
| 65 | @end |