summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/setter-dotsyntax.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/setter-dotsyntax.m')
-rw-r--r--clang/test/SemaObjC/setter-dotsyntax.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/setter-dotsyntax.m b/clang/test/SemaObjC/setter-dotsyntax.m
new file mode 100644
index 0000000..e0b51e8
--- /dev/null
+++ b/clang/test/SemaObjC/setter-dotsyntax.m
@@ -0,0 +1,19 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// rdar://8528170
+
+@interface NSObject @end
+
+@protocol MyProtocol
+- (int) level;
+- (void) setLevel:(int)inLevel;
+@end
+
+@interface MyClass : NSObject <MyProtocol>
+@end
+
+int main ()
+{
+ id<MyProtocol> c;
+ c.level = 10;
+ return 0;
+}