blob: 3b9d4e5bfa27b565f229d040a2074d79ecd5f2fb [file] [log] [blame]
/* APPLE LOCAL file radar 4816280 */
/* No warning for implementation with user-accessor, @dynamic or @synthesize properties. */
/* { dg-options "-fobjc-new-property -mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-fobjc-new-property" { target arm*-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
@interface Larry
@property int ivar;
@end
@implementation Larry
// no warning
- (void)setIvar:(int)arg{};
- (int)ivar{};
@end
@interface Moe
{
int ivar;
}
@property int ivar;
@end
@implementation Moe
// no warning
@synthesize ivar;
- (void)setIvar:(int)arg{};
@end
@interface Curly
@property int ivar;
@end
@implementation Curly
// no warning
@dynamic ivar;
- (int)ivar{};
@end
int main (void) {return 0;}