brintos

brintos / llvm-project-archived public Read only

0
0
Text · 633 B · b1e1f2c Raw
24 lines · plain
1// RUN: %clang_cc1  -fsyntax-only -verify %s2 3@interface Super  {4  id value2; // expected-note {{previously declared 'value2' here}}5} 6@property(retain) id value;7@property(retain) id value1;8@property(retain) id prop;9@end10 11@interface Sub : Super 12{13  id value; 14}15@end16 17@implementation Sub18@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'}}21@end22 23 24