blob: 003980da0bdc5b9837e33c9eb5f89b5059c057bb [file] [log] [blame]
/* APPLE LOCAL file radar 4625843 */
/* Test that bycopy calls are generated. */
/* APPLE LOCAL radar 4899595 */
/* { dg-options "-fno-objc-new-property -mmacosx-version-min=10.5" } */
/* { dg-do compile { target *-*-darwin* } } */
@protocol NSCopying;
@interface NSWindow
{
NSWindow* IVAR;
}
@end
@implementation NSWindow @end
@interface NSWindow (CAT)
@property(ivar=IVAR, bycopy) NSWindow <NSCopying>* title;
@end
@implementation NSWindow (CAT)
@property(ivar=IVAR, bycopy) NSWindow <NSCopying>* title;
@end
/* { dg-final { scan-assembler "object_getProperty_bycopy" } } */
/* { dg-final { scan-assembler "object_setProperty_bycopy" } } */