diff options
Diffstat (limited to 'clang/test/SemaObjC/objc-qualified-property-lookup.m')
-rw-r--r-- | clang/test/SemaObjC/objc-qualified-property-lookup.m | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/objc-qualified-property-lookup.m b/clang/test/SemaObjC/objc-qualified-property-lookup.m new file mode 100644 index 0000000..48b28cb --- /dev/null +++ b/clang/test/SemaObjC/objc-qualified-property-lookup.m @@ -0,0 +1,21 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// rdar://9078584 + +@interface NSObject @end + +@protocol TextInput +-editRange; +@end + +@interface I { + NSObject<TextInput>* editor; +} +- (id) Meth; +@end + +@implementation I +- (id) Meth { + return editor.editRange; +} +@end + |