Fariborz Jahanian | 3ac1eda | 2010-01-20 01:51:55 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |
| 3 | @protocol PROTOCOL0 |
| 4 | @required |
| 5 | @property float MyProperty0; // expected-warning {{property 'MyProperty0' requires method 'MyProperty0' to be defined }} \ |
| 6 | // expected-warning {{property 'MyProperty0' requires method 'setMyProperty0:' to be defined}} |
| 7 | @end |
| 8 | |
| 9 | @protocol PROTOCOL<PROTOCOL0> |
| 10 | @required |
| 11 | @property float MyProperty; // expected-warning {{property 'MyProperty' requires method 'MyProperty' to be defined}} \ |
| 12 | // expected-warning {{property 'MyProperty' requires method 'setMyProperty:' to be defined}} |
| 13 | @optional |
| 14 | @property float OptMyProperty; |
| 15 | @end |
| 16 | |
| 17 | @interface I <PROTOCOL> |
| 18 | @end |
| 19 | |
| 20 | @implementation I @end // expected-note 4 {{implementation is here}} |