Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Steve Naroff | e2af8b1 | 2008-06-05 14:49:39 +0000 | [diff] [blame] | 2 | typedef signed char BOOL; |
| 3 | |
| 4 | @protocol NSObject |
Steve Naroff | 1f484f4 | 2009-02-26 18:16:19 +0000 | [diff] [blame] | 5 | + alloc; |
| 6 | - init; |
Steve Naroff | e2af8b1 | 2008-06-05 14:49:39 +0000 | [diff] [blame] | 7 | - (BOOL) isEqual:(id) object; |
Steve Naroff | 1f484f4 | 2009-02-26 18:16:19 +0000 | [diff] [blame] | 8 | - (Class)class; |
Steve Naroff | e2af8b1 | 2008-06-05 14:49:39 +0000 | [diff] [blame] | 9 | @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 | |
| 21 | enum { |
| 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 | |
| 31 | extern NSString *const NSWillBecomeMultiThreadedNotification; |
| 32 | |
| 33 | @interface SenTestTool:NSObject {} |
| 34 | @end |
| 35 | |
| 36 | @implementation SenTestTool |
| 37 | + (void) initialize {} |
Mike Stump | d1969d8 | 2009-07-22 00:43:08 +0000 | [diff] [blame^] | 38 | +(SenTestTool *) sharedInstance { return 0; } |
| 39 | -(int) run { return 0; } |
Steve Naroff | e2af8b1 | 2008-06-05 14:49:39 +0000 | [diff] [blame] | 40 | +(int) run { |
| 41 | return[[self sharedInstance] run]; |
| 42 | } |
| 43 | @end |
Steve Naroff | 1f484f4 | 2009-02-26 18:16:19 +0000 | [diff] [blame] | 44 | |
| 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 Stump | d1969d8 | 2009-07-22 00:43:08 +0000 | [diff] [blame^] | 60 | return 0; |
Steve Naroff | 1f484f4 | 2009-02-26 18:16:19 +0000 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | @end |