summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/default-synthesize.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-07-26 20:52:26 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-07-26 20:52:26 +0000
commit4ab2452c1f5294a96120164bf4b0b5b95e2d141a (patch)
tree2439a295a5050baf0420f78036fb18a166e9e259 /test/SemaObjC/default-synthesize.m
parent917ace5cf50494106a76000f9a2f32b6dd37effd (diff)
Objective-C. Issue more warning diagnostic when certain
properties are not synthesized in property auto-synthesis, as it can potentiall lead to runtime errors. rdar://17774815 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/default-synthesize.m')
-rw-r--r--test/SemaObjC/default-synthesize.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaObjC/default-synthesize.m b/test/SemaObjC/default-synthesize.m
index 9356b9f5b3..a3abe2eca8 100644
--- a/test/SemaObjC/default-synthesize.m
+++ b/test/SemaObjC/default-synthesize.m
@@ -88,7 +88,7 @@
@end
@protocol TopProtocol
- @property (readonly) id myString;
+ @property (readonly) id myString; // expected-warning {{auto property synthesis will not synthesize property 'myString' because it will be synthesize by its super class}}
@end
@interface TopClass <TopProtocol>
@@ -97,10 +97,10 @@
}
@end
-@interface SubClass : TopClass <TopProtocol>
+@interface SubClass : TopClass <TopProtocol>
@end
-@implementation SubClass @end
+@implementation SubClass @end // expected-note {{detected while default synthesizing properties in class implementation}}
// rdar://7920807
@interface C @end