diff options
Diffstat (limited to 'test/SemaObjC/property-missing.m')
-rw-r--r-- | test/SemaObjC/property-missing.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaObjC/property-missing.m b/test/SemaObjC/property-missing.m index 6ce0bea..bf75601 100644 --- a/test/SemaObjC/property-missing.m +++ b/test/SemaObjC/property-missing.m @@ -20,3 +20,15 @@ void f3(id o) o.foo; // expected-error{{property 'foo' not found on object of type 'id'}} } +// rdar://8851803 +@class SomeOtherClass; // expected-note {{forward class is declared here}} + +@interface MyClass { + SomeOtherClass *someOtherObject; +} +@end + +void foo(MyClass *myObject) { + myObject.someOtherObject.someProperty = 0; // expected-error {{property 'someOtherObject' refers to an incomplete Objective-C class 'SomeOtherClass' (with no @interface available)}} +} + |