blob: d59d83fd78c4511a2870bf121263193e71b35730 [file] [log] [blame]
Fariborz Jahanianb391e6e2007-10-17 16:58:11 +00001// RUN: clang -fsyntax-only -verify %s
2
3typedef struct Protocol 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