blob: f428284cf60f140a123a1ae216ae1e92965df9c5 [file] [log] [blame]
/* APPLE LOCAL file radar 4649701 */
/* Test that test compiles with no error when setter is declared in protocol,
not declared in its adopting interface and is defined in @implementation. */
/* APPLE LOCAL radar 4899595 */
/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
@class GroupItem;
@protocol GroupEditorProtocol
- (void)setGroupItem:(GroupItem *)aGroupItem;
@end
__attribute__((objc_root_class)) @interface GroupEditor <GroupEditorProtocol>
{
GroupItem *groupItem;
}
@property (copy, setter=setGroupItem:) GroupItem *groupItem_property;
@end
@implementation GroupEditor
- (void)setGroupItem:(GroupItem *)aGroupItem
{
}
@synthesize groupItem_property = groupItem;
@end