[analyzer] Address Jordan's code review for r164790.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164803 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/objc-properties.m b/test/Analysis/objc-properties.m
index a25791e..2311ef2 100644
--- a/test/Analysis/objc-properties.m
+++ b/test/Analysis/objc-properties.m
@@ -13,7 +13,7 @@
@property (assign, nonatomic) MyClass* Y; // automatically synthesized, implemented
- @property (assign, nonatomic) MyClass* Z; // non synthesized, implemented
+ @property (assign, nonatomic) MyClass* Z; // non synthesized ivar, implemented setter
@property (readonly) id nonSynth; // non synthesized, explicitly implemented to return ivar with expected name
- (id) initWithPtr:(MyClass*) value;
@@ -47,7 +47,7 @@
}
- (void) someMethod: (MyClass*)In {
- __A = In; // expected-warning {{Direct assignment to an instance variable backing a property; use the setter instead}}
+ (__A) = In; // expected-warning {{Direct assignment to an instance variable backing a property; use the setter instead}}
_X = In; // expected-warning {{Direct assignment to an instance variable backing a property; use the setter instead}}
_Y = In; // expected-warning {{Direct assignment to an instance variable backing a property; use the setter instead}}
_Z = In; // expected-warning {{Direct assignment to an instance variable backing a property; use the setter instead}}