blob: 3d8fc615151154744b2b2e2058fd4eb91a05c96b [file] [log] [blame]
/* APPLE LOCAL file radar 5159707 */
/* Check that appropriate warning on property type mismatch is issued. */
/* { dg-options "-mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
@class Bar;
@class Baz;
__attribute__((objc_root_class)) @interface Foo
{
Baz *typeMismatchError;
}
@property(readonly, nonatomic, assign) Baz *typeMismatchError; /* { dg-error "property declared here" } */
@end
@interface Foo()
@property(readwrite, nonatomic, assign) Bar *typeMismatchError; /* { dg-error "type of property" } */
@end
@implementation Foo
@synthesize typeMismatchError;
@end
int main (int argc, const char * argv[]) {
return 0;
}