summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/default-synthesize.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-07-14 18:11:52 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-07-14 18:11:52 +0000
commitd3635b9681daaef74974932f77080910b032b9fd (patch)
tree60616801d949e2edcde30026d5d80f2722981be3 /test/SemaObjC/default-synthesize.m
parent7e9ad8b4fd446ca7cc0e630edee56d8fcc4553de (diff)
Don't error when doing default property synthesis
and some are already synthesized by user declaration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/default-synthesize.m')
-rw-r--r--test/SemaObjC/default-synthesize.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaObjC/default-synthesize.m b/test/SemaObjC/default-synthesize.m
index 283ad260a9..0586daea87 100644
--- a/test/SemaObjC/default-synthesize.m
+++ b/test/SemaObjC/default-synthesize.m
@@ -103,3 +103,15 @@
@implementation C (Category) // expected-note 2 {{implementation is here}}
@end
+// Don't complain if a property is already @synthesized by usr.
+@interface D
+{
+}
+@property int PROP;
+@end
+
+@implementation D
+- (int) Meth { return self.PROP; }
+@synthesize PROP=IVAR;
+@end
+