blob: a25dd7e3b0de151778a44b27b2e9e803c8706b74 [file] [log] [blame]
/* APPLE LOCAL file radar 4805321 */
/* Test a variety of error reporting on mis-use of 'weak' attribute */
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-options "-fobjc-new-property -mmacosx-version-min=10.5 -fobjc-gc" } */
@interface INTF
{
id IVAR;
}
@property (assign) __weak id pweak;
@end
@implementation INTF
@synthesize pweak=IVAR; /* { dg-error "existing ivar 'IVAR' for the '__weak' property 'pweak' must be __weak" } */
@end