1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 id value2; // expected-note {{previously declared 'value2' here}}
6 @property(retain) id value;
7 @property(retain) id value1;
8 @property(retain) id prop;
11 @interface Sub : Super
18 @synthesize value; // expected-note {{previous use is here}}
19 @synthesize value1=value; // expected-error {{synthesized properties 'value1' and 'value' both claim instance variable 'value'}}
20 @synthesize prop=value2; // expected-error {{property 'prop' attempting to use instance variable 'value2' declared in super class 'Super'}}