diff options
Diffstat (limited to 'test/SemaObjC/property-9.m')
-rw-r--r-- | test/SemaObjC/property-9.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaObjC/property-9.m b/test/SemaObjC/property-9.m index 669f9c0e4bd0..2b6564d29593 100644 --- a/test/SemaObjC/property-9.m +++ b/test/SemaObjC/property-9.m @@ -96,3 +96,14 @@ typedef signed char BOOL; - (float)setMyStyle:(int)style; @end +// rdar://8774513 +@class MDAInstance; // expected-note {{forward class is declared here}} + +@interface MDATestDocument +@property(retain) MDAInstance *instance; +@end + +id f0(MDATestDocument *d) { + return d.instance.path; // expected-error {{property 'path' cannot be found in forward class object 'MDAInstance *'}} +} + |