| /* APPLE LOCAL file radar 5159707 */ |
| /* Check that appropriate warning on property type mismatch is issued. */ |
| /* { dg-options "-Wno-objc-root-class -mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */ |
| |
| @class Bar; |
| @class Baz; |
| |
| @interface Foo |
| { |
| Baz *typeMismatchError; |
| } |
| |
| @property(readonly, nonatomic, assign) Baz *typeMismatchError; /* { dg-warning "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; |
| } |