Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git] / test / SemaObjC / protocol-expr-neg-1.m
blob58ac8c0ca322345564216aae3c84d3dd45789a4f
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 @class Protocol;
5 @protocol fproto;
7 @protocol p1 
8 @end
10 @class cl;
12 int main()
14         Protocol *proto = @protocol(p1);
15         Protocol *fproto = @protocol(fproto);
16         Protocol *pp = @protocol(i); // expected-error {{cannot find protocol declaration for 'i'}}
17         Protocol *p1p = @protocol(cl); // expected-error {{cannot find protocol declaration for 'cl'}}