blob: 98239229a2c7f2ef4a3e616f6ac3f98c215739e6 [file] [log] [blame]
Steve Naroff939ab472009-04-07 14:22:40 +00001// RUN: clang-cc %s -verify -fsyntax-only
Steve Naroffd9fd7642009-04-07 14:18:33 +00002
3#define nil 0 /* id of Nil instance */
4
5@interface NSObject
6@end
7
8@interface NSString : NSObject
9
10@end
11
12@interface NSMutableString : NSString
13
14@end
15
16@interface NSSimpleCString : NSString {
17@protected
18 char *bytes;
19 int numBytes;
20}
21@end
22
23@interface NSConstantString : NSSimpleCString
24@end
25
26
27@interface Subclass : NSObject
28- (NSString *)token;
29@end
30
31@implementation Subclass
32- (NSString *)token;
33{
34 NSMutableString *result = nil;
35
36 return (result != nil) ? result : @"";
37}
38@end
39