Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git] / test / SemaObjC / gcc-cast-ext.m
blob599e37d77839a9338fc100787c12073868c1b366
1 // RUN: %clang_cc1 %s -verify -fms-extensions
2 @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
3 typedef struct _NSRange { } NSRange;
5 @class PBXFileReference;
7 @interface PBXDocBookmark
8 + alloc;        // expected-note {{{{method definition for 'alloc' not found}}
9 - autorelease;  // expected-note {{{{method definition for 'autorelease' not found}}
10 @end
12 // GCC allows pointer expressions in integer constant expressions.
13 struct {
14   char control[((int)(char *)2)];
15 } xx;
17 @implementation PBXDocBookmark  // expected-warning {{incomplete implementation}}
19 + (id)bookmarkWithFileReference:(PBXFileReference *)fileRef gylphRange:(NSRange)range anchor:(NSString *)htmlAnchor
21     NSRange r = (NSRange)range;
22     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')}}
24 @end