blob: e10303c5a57e153784d73414abff067fb2a81ebd [file] [log] [blame]
/* APPLE LOCAL file radar 5847641 */
/* Warn if an unknown ivar has been specified in @synthesize. This is for default
abi only. */
/* { dg-options "-fobjc-abi-version=1" } */
@interface MyStupidClass {
id _bar;
}
@property(readwrite, retain) id foo;
@end
@implementation MyStupidClass
@synthesize foo = _foo; /* { dg-warning "ivar name \'_foo\' specified on the synthesized property" } */
- (id)foo {
return _bar;
}
- (void)setFoo:(id)newFoo {
}
@end