Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Andy Gibbs | c6e68da | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Fariborz Jahanian | a32aaef | 2007-10-17 16:58:11 +0000 | [diff] [blame] | 3 | |
Fariborz Jahanian | a57d91c2 | 2014-07-25 19:45:01 +0000 | [diff] [blame] | 4 | @protocol fproto @end |
Fariborz Jahanian | a32aaef | 2007-10-17 16:58:11 +0000 | [diff] [blame] | 5 | |
| 6 | @protocol p1 |
| 7 | @end |
| 8 | |
| 9 | @class cl; |
| 10 | |
| 11 | int main() |
| 12 | { |
| 13 | Protocol *proto = @protocol(p1); |
| 14 | Protocol *fproto = @protocol(fproto); |
| 15 | } |
| 16 | |