blob: 9af0c8ca6bd2912e634fef2fb07b853166d7947b [file] [log] [blame]
/* APPLE LOCAL file radar 4805321 - 4947014 */
/* Test that bycopy calls are generated. */
/* { dg-options "-fobjc-new-property -mmacosx-version-min=10.5" } */
/* { dg-do compile { target *-*-darwin* } } */
@protocol NSCopying;
@interface NSWindow
{
NSWindow* IVAR;
}
@property(copy) NSWindow <NSCopying>* title;
@end
@implementation NSWindow
@dynamic title;
@end
@interface NSWindow (CAT)
@property(copy) NSWindow <NSCopying>* title;
@end
@implementation NSWindow (CAT)
@synthesize title=IVAR;
@end
/* { dg-final { scan-assembler "objc_getProperty" } } */
/* { dg-final { scan-assembler "objc_setProperty" } } */