brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 4669960 Raw
96 lines · plain
1// RUN: %clang_cc1 %s -fsyntax-only -verify2// expected-no-diagnostics3 4typedef signed char BOOL;5@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;6 7@protocol NSObject8- (BOOL) isEqual:(id) object;9@end10 11@protocol NSCoding12- (void) encodeWithCoder:(NSCoder *) aCoder;13@end14 15@interface NSObject < NSObject > {}16@end17 18typedef float CGFloat;19typedef struct _NSPoint {} NSSize;20typedef struct _NSRect {} NSRect;21typedef enum { NSMinXEdge = 0, NSMinYEdge = 1, NSMaxXEdge = 2, NSMaxYEdge = 3} NSRectEdge;22extern void NSDivideRect(NSRect inRect, NSRect * slice, NSRect * rem, CGFloat amount, NSRectEdge edge);23 24@interface NSResponder:NSObject < NSCoding > {}25@end26 27@protocol NSAnimatablePropertyContainer28- (id) animator;29@end30 31extern NSString *NSAnimationTriggerOrderIn;32 33@interface NSView:NSResponder < NSAnimatablePropertyContainer > {}34-(NSRect) bounds;35@end36 37enum {38  NSBackgroundStyleLight = 0, NSBackgroundStyleDark, NSBackgroundStyleRaised, NSBackgroundStyleLowered39};40 41@interface NSTabView:NSView {}42@end43 44@ class OrganizerTabHeader;45 46@interface OrganizerTabView:NSTabView {}47@property(assign)48NSSize minimumSize;49@end50 51@interface OrganizerTabView()52@property(readonly) OrganizerTabHeader *tabHeaderView;53@property(readonly) NSRect headerRect;54@end55 56@implementation OrganizerTabView57@dynamic tabHeaderView, headerRect, minimumSize;58-(CGFloat) tabAreaThickness { return 0; }59-(NSRectEdge) rectEdgeForTabs { 60  NSRect dummy, result = {};61  NSDivideRect(self.bounds, &result, &dummy, self.tabAreaThickness, self.rectEdgeForTabs);62  return 0;63}64@end65 66@class NSImage;67 68@interface XCImageArchiveEntry : NSObject69{70  NSImage *_cachedImage;71}72 73@end74 75@implementation XCImageArchiveEntry76 77- (NSImage *)image78{79  return _cachedImage;80}81 82@end83 84@interface XCImageArchive : NSObject85@end86 87@implementation XCImageArchive88 89- (NSImage *)imageNamed:(NSString *)name90{91    XCImageArchiveEntry * entry;92    return entry ? entry.image : ((void *)0);93}94 95@end96