blob: 3492151103304b9021fbe1226c9b1cf70859f02a [file] [log] [blame]
/* APPLE LOCAL file radar 5180172 */
/* Test that cannot synthesize a category */
/* { 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; /* { dg-error "synthesize not allowed in a category's implementation" } */
@end