newproperty-syntax-1.mm   [plain text]


/* APPLE LOCAL file radar 4805321 */
/* { dg-options "-fobjc-new-property -mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-fobjc-new-property" { target arm*-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */

@interface INTF
{
	id IV;
	id IVXXX;
	int synthesize_ivar;
}
@property (readwrite, assign) int name1;
@property (readonly, retain)  id name2;
@property (readwrite, copy)   id name3;
@property (readwrite, assign) int name4;
@property (readonly, retain)  id name5;
@property (readwrite, copy)   id name6;
@end

@implementation INTF
@dynamic name1,name2,name3;
@synthesize name4=synthesize_ivar, name5=IV, name6=IVXXX;
@end