diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-08-07 16:38:44 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-08-07 16:38:44 +0000 |
commit | cff863fd803874d251ef8725d5c08dec90924627 (patch) | |
tree | 87eb102b983a3c400390b87d91ef897180283031 /test | |
parent | f7158fa034174d2756736d1032b75d01d9deeb4c (diff) |
objective-c: Exclude -Wdirect-ivar-access for arc.
Allow direct ivar access in init and dealloc methods
in mrr. // rdar://650197
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/SemaObjC/warn-direct-ivar-access.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaObjC/warn-direct-ivar-access.m b/test/SemaObjC/warn-direct-ivar-access.m index 6850db64a3..dfddd823e3 100644 --- a/test/SemaObjC/warn-direct-ivar-access.m +++ b/test/SemaObjC/warn-direct-ivar-access.m @@ -20,6 +20,11 @@ __attribute__((objc_root_class)) @interface MyObject { // expected-warning {{instance variable '_isTickledPink' is being directly accessed}} } +- (id) init { + _myMaster=0; + return _myMaster; +} +- (void) dealloc { _myMaster = 0; } @end MyObject * foo () |