diff options
Diffstat (limited to 'test/SemaObjC/direct-synthesized-ivar-access.m')
-rw-r--r-- | test/SemaObjC/direct-synthesized-ivar-access.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/SemaObjC/direct-synthesized-ivar-access.m b/test/SemaObjC/direct-synthesized-ivar-access.m index a72fb5f19c7a..7e57a29b18ac 100644 --- a/test/SemaObjC/direct-synthesized-ivar-access.m +++ b/test/SemaObjC/direct-synthesized-ivar-access.m @@ -1,14 +1,15 @@ -// RUN: %clang_cc1 -Wnonfragile-abi2 -fsyntax-only -fobjc-nonfragile-abi -fobjc-default-synthesize-properties -verify %s +// RUN: %clang_cc1 -Wnonfragile-abi2 -fsyntax-only -fobjc-default-synthesize-properties -verify %s // rdar://8673791 +// rdar://9943851 @interface I { } -@property int IVAR; // expected-note {{property declared here}} +@property int IVAR; - (int) OK; @end @implementation I -- (int) Meth { return IVAR; } // expected-warning {{direct access of synthesized ivar by using property access 'IVAR'}} +- (int) Meth { return _IVAR; } - (int) OK { return self.IVAR; } @end |