Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git] / test / SemaObjC / forward-class-receiver.m
blob55b29c15c5c31df5b558340cd5de1537e0cd978f
1 // RUN: %clang_cc1  -fsyntax-only -verify %s
3 @interface I
4 + new; // expected-note {{method 'new' is used for the forward class}}
5 @end
6 Class isa;
8 @class NotKnown;
10 void foo(NotKnown *n) {
11   [isa new];
12   [NotKnown new];          /* expected-warning {{receiver 'NotKnown' is a forward class and corresponding}} */