xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjC/protocol-expr-neg-1.m (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3@class Protocol;
4
5@protocol fproto;
6
7@protocol p1
8@end
9
10@class cl;
11
12int main()
13{
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'}}
18}
19
20