blob: a90a05f5a263fb512fc5c67383177d8640ff322a [file] [log] [blame]
/* APPLE LOCAL file radar 4963113 */
/* Normally, -Wno-protocol warns if methods declared in protocol not implemented
in the class implementation. In this case, how ever, property is dynamic and
no implementation of its setter/getter is required. */
/* { dg-options "-fobjc-new-property -mmacosx-version-min=10.5 -Wno-protocol" } */
/* { dg-do compile { target *-*-darwin* } } */
@interface NSObject @end
@protocol PropProt
@property(readwrite) int foo;
- (int) bar;
@end
@interface MyProtocolClass : NSObject <PropProt>
@end
@implementation MyProtocolClass
@dynamic foo;
- (int) bar { return -1; }
@end
@interface MyClass : NSObject
@property(readwrite) int foo;
- (int) bar;
@end
@implementation MyClass
@dynamic foo;
- (int) bar { return -1; }
@end