blob: cca757509ad196a879b52d81b8c45ba302b36151 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -verify %s
Steve Naroffe2af8b12008-06-05 14:49:39 +00002typedef signed char BOOL;
3
4@protocol NSObject
Steve Naroff1f484f42009-02-26 18:16:19 +00005+ alloc;
6- init;
Steve Naroffe2af8b12008-06-05 14:49:39 +00007- (BOOL) isEqual:(id) object;
Steve Naroff1f484f42009-02-26 18:16:19 +00008- (Class)class;
Steve Naroffe2af8b12008-06-05 14:49:39 +00009@end
10
11@interface NSObject < NSObject > {} @end
12
13@class NSString, NSPort;
14
15@interface NSPortNameServer:NSObject
16+ (NSPortNameServer *) systemDefaultPortNameServer;
17@end
18
19@interface NSMachBootstrapServer:NSPortNameServer + (id) sharedInstance; @end
20
21enum {
22 NSWindowsNTOperatingSystem = 1, NSWindows95OperatingSystem, NSSolarisOperatingSystem, NSHPUXOperatingSystem, NSMACHOperatingSystem, NSSunOSOperatingSystem, NSOSF1OperatingSystem
23};
24
25@interface NSRunLoop:NSObject {} @end
26
27@interface NSRunLoop(NSRunLoopConveniences)
28- (void) run;
29@end
30
31extern NSString *const NSWillBecomeMultiThreadedNotification;
32
33@interface SenTestTool:NSObject {}
34@end
35
36@implementation SenTestTool
37+ (void) initialize {}
Mike Stumpd1969d82009-07-22 00:43:08 +000038+(SenTestTool *) sharedInstance { return 0; }
39-(int) run { return 0; }
Steve Naroffe2af8b12008-06-05 14:49:39 +000040+(int) run {
41 return[[self sharedInstance] run];
42}
43@end
Steve Naroff1f484f42009-02-26 18:16:19 +000044
45@interface XX : NSObject
46
47+ classMethod;
48
49@end
50
51@interface YY : NSObject
52- whatever;
53@end
54
55@implementation YY
56
57- whatever {
58 id obj = [[XX alloc] init];
59 [[obj class] classMethod];
Mike Stumpd1969d82009-07-22 00:43:08 +000060 return 0;
Steve Naroff1f484f42009-02-26 18:16:19 +000061}
62
63@end