summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-01-06 00:18:12 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-01-06 00:18:12 +0000
commit1a5f292fbfcae4b6ddd6ba3fb3b03d068845c70e (patch)
tree236effd71c0f5edc47d58a4f882801cfeaa3b26a /clang/test
parent578865ff3d2dcdd79f4df4329703c262920de5dc (diff)
downloadbcm5719-llvm-1a5f292fbfcae4b6ddd6ba3fb3b03d068845c70e.tar.gz
bcm5719-llvm-1a5f292fbfcae4b6ddd6ba3fb3b03d068845c70e.zip
Do not diagnose method disguised as property setter
for a 'readonly' property. Fixes radar 7427072. llvm-svn: 92808
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaObjC/property-9.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/property-9.m b/clang/test/SemaObjC/property-9.m
index 138f09953d5..d527a9c9f30 100644
--- a/clang/test/SemaObjC/property-9.m
+++ b/clang/test/SemaObjC/property-9.m
@@ -84,3 +84,15 @@ typedef signed char BOOL;
view.inEyeDropperMode = 1;
}
@end
+
+// radar 7427072
+@interface MyStyleIntf
+{
+ int _myStyle;
+}
+
+@property(readonly) int myStyle;
+
+- (float)setMyStyle:(int)style;
+@end
+
OpenPOWER on IntegriCloud