Fariborz Jahanian | 29da66e | 2009-04-13 19:30:37 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -triple x86_64-apple-darwin10 -verify %s |
| 2 | |
| 3 | @interface Super { |
| 4 | id value; // expected-note {{previously declared 'value' here}} |
| 5 | } |
| 6 | @property(retain) id value; |
| 7 | @property(retain) id value1; |
| 8 | @end |
| 9 | |
| 10 | @interface Sub : Super @end |
| 11 | |
| 12 | @implementation Sub |
| 13 | @synthesize value; // expected-error {{property 'value' attempting to use ivar 'value' declared in in super class 'Super'}} // expected-note {{previous use is here}} |
| 14 | @synthesize value1=value; // expected-error {{synthesized properties 'value1' and 'value' both claim ivar 'value'}} |
| 15 | @end |
| 16 | |
| 17 | |