blob: b7302c84dc8a4df83790dc6d93ef391889c4a5d0 [file] [log] [blame]
/* APPLE LOCAL file radar 5435299 */
/* Multiple @synthesize of a single property is error. */
/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-fobjc-new-property" { target arm*-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
#import <objc/Object.h>
@interface Test3 : Object
{
int prop;
}
@property int prop;
@end
@implementation Test3
@synthesize prop; /* { dg-warning "previous use is here" } */
@synthesize prop; /* { dg-error "synthesized properties \\'prop\\' and \\'prop\\' both claim instance variable \\'prop\\'" } */
/* { dg-warning "previous declaration is here" "" { target *-*-* } 16 } */
/* { dg-error "property \\'prop\\' is already implemented" "" { target *-*-* } 17 } */
@end