aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/direct-synthesized-ivar-access.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-08-31 22:24:06 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-08-31 22:24:06 +0000
commit8697d308c1bdd50e5c45757ac11be701c26e9e97 (patch)
tree59afd9cf6f5b60347b1c2886b66bd4d0e1d28162 /test/SemaObjC/direct-synthesized-ivar-access.m
parente082af17d4b425a49f7f8bccc2a99810f0072828 (diff)
objective-c: this patch (re)introduces objective-c's default property
synthesis. This new feature is currently placed under -fobjc-default-synthesize-properties option and is off by default pending further testing. It will become the default feature soon. // rdar://8843851 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/direct-synthesized-ivar-access.m')
-rw-r--r--test/SemaObjC/direct-synthesized-ivar-access.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/SemaObjC/direct-synthesized-ivar-access.m b/test/SemaObjC/direct-synthesized-ivar-access.m
index a72fb5f19c..d9be872b45 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
// 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