Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | 390d50a | 2007-10-17 16:58:11 +0000 | [diff] [blame] | 2 | |
Fariborz Jahanian | 390d50a | 2007-10-17 16:58:11 +0000 | [diff] [blame] | 3 | @protocol fproto; |
4 | |||||
5 | @protocol p1 | ||||
6 | @end | ||||
7 | |||||
8 | @class cl; | ||||
9 | |||||
10 | int main() | ||||
11 | { | ||||
12 | Protocol *proto = @protocol(p1); | ||||
13 | Protocol *fproto = @protocol(fproto); | ||||
14 | } | ||||
15 |