Steve Naroff | 61d6852 | 2009-03-05 15:22:01 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
2 | |||||
3 | @protocol B; | ||||
4 | @protocol C < B > // expected-warning{{cannot find protocol definition for 'B'}} // expected-note{{previous definition is here}} | ||||
5 | @end | ||||
6 | @protocol A < C > | ||||
7 | @end | ||||
8 | @protocol B < A > // expected-error{{protocol has circular dependency}} | ||||
9 | @end | ||||
10 |