blob: 5f6aa47128bceb9052bac25eb47d71cb19276ef6 [file] [log] [blame]
Steve Naroff7f1c5b52008-06-03 13:21:30 +00001// RUN: clang %s -verify -fms-extensions
2@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
3typedef struct _NSRange { } NSRange;
4
5@class PBXFileReference;
6
7@interface PBXDocBookmark
8+ alloc;
9- autorelease;
10@end
11@implementation PBXDocBookmark // expected-warning {{incomplete implementation}} expected-warning {{method definition for 'autorelease' not found}} expected-warning {{method definition for 'alloc' not found}}
12
13+ (id)bookmarkWithFileReference:(PBXFileReference *)fileRef gylphRange:(NSRange)range anchor:(NSString *)htmlAnchor
14{
15 NSRange r = (NSRange)range;
16 return [[[self alloc] initWithFileReference:fileRef gylphRange:(NSRange)range anchor:(NSString *)htmlAnchor] autorelease]; // expected-warning {{method '-initWithFileReference:gylphRange:anchor:' not found (return type defaults to 'id')}}
17}
18@end