1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 typedef signed char BOOL;
3 typedef unsigned int NSUInteger;
4 typedef struct _NSZone NSZone;
6 @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
8 @protocol NSObject - (BOOL) isEqual:(id) object; @end
9 @protocol NSCopying - (id) copyWithZone:(NSZone *) zone; @end
10 @protocol NSCoding - (void) encodeWithCoder:(NSCoder *) aCoder; @end
12 @interface NSObject < NSObject > {}
16 typedef float CGFloat;
18 @interface NSTask:NSObject
22 typedef NSUInteger NSControlSize;
23 typedef struct __CFlags {} _CFlags;
25 @interface NSCell:NSObject < NSCopying, NSCoding > {}
28 @interface NSActionCell:NSCell {} @end
30 @class NSAttributedString, NSFont, NSImage, NSSound;
32 typedef struct _XCElementInset {} XCElementInset;
34 @protocol XCElementP < NSObject >
38 @protocol XCElementDisplayDelegateP;
39 @protocol XCElementDisplayDelegateP < NSObject >
40 -(void) configureForControlSize:(NSControlSize)size font:(NSFont *)font addDefaultSpace:(XCElementInset) additionalSpace;
43 @protocol XCElementSpacerP < XCElementP >
46 typedef NSObject < XCElementSpacerP > XCElementSpacer;
48 @protocol XCElementTogglerP < XCElementP > -(void) setDisplayed:(BOOL) displayed;
51 typedef NSObject < XCElementTogglerP > XCElementToggler;
53 @interface XCElementRootFace:NSObject {} @end
55 @interface XCElementFace:XCElementRootFace {} @end
57 @class XCElementToggler;
59 @interface XCRASlice:XCElementFace {} @end
61 @class XCElementSpacings;
63 @interface XCElementDisplay:NSObject < XCElementDisplayDelegateP > {} @end
64 @interface XCElementDisplayRect:XCElementDisplay {} @end
66 typedef XCElementDisplayRect XCElementGraphicsRect;
68 @interface XCElementDisplayFillerImage:XCElementDisplay {} @end
70 @implementation XCRASlice
71 - (void) addSliceWithLabel:(NSString *)label statusKey:(NSString *)statusKey disclosed:(BOOL)disclosed
73 static XCElementGraphicsRect *_sGraphicsDelegate = ((void *) 0);
74 if (!_sGraphicsDelegate) {
75 _sGraphicsDelegate =[[XCElementGraphicsRect alloc] init];