blob: 2b85685362d30a801a7394102cc9a8c0ce063fd1 [file] [log] [blame]
Fariborz Jahanian29da66e2009-04-13 19:30:37 +00001// 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