1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 typedef signed char BOOL;
8 - (BOOL) isEqual:(id) object;
12 @interface NSObject < NSObject > {} @end
14 @class NSString, NSPort;
16 @interface NSPortNameServer:NSObject
17 + (NSPortNameServer *) systemDefaultPortNameServer;
20 @interface NSMachBootstrapServer:NSPortNameServer + (id) sharedInstance; @end
23 NSWindowsNTOperatingSystem = 1, NSWindows95OperatingSystem, NSSolarisOperatingSystem, NSHPUXOperatingSystem, NSMACHOperatingSystem, NSSunOSOperatingSystem, NSOSF1OperatingSystem
26 @interface NSRunLoop:NSObject {} @end
28 @interface NSRunLoop(NSRunLoopConveniences)
32 extern NSString *const NSWillBecomeMultiThreadedNotification;
34 @interface SenTestTool:NSObject {}
37 @implementation SenTestTool
38 + (void) initialize {}
39 +(SenTestTool *) sharedInstance { return 0; }
40 -(int) run { return 0; }
42 return[[self sharedInstance] run];
46 @interface XX : NSObject
52 @interface YY : NSObject
59 id obj = [[XX alloc] init];
60 [[obj class] classMethod];