summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/property-redundant-decl-accessor.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/property-redundant-decl-accessor.m')
-rw-r--r--test/SemaObjC/property-redundant-decl-accessor.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/SemaObjC/property-redundant-decl-accessor.m b/test/SemaObjC/property-redundant-decl-accessor.m
new file mode 100644
index 0000000..ffd5129
--- /dev/null
+++ b/test/SemaObjC/property-redundant-decl-accessor.m
@@ -0,0 +1,18 @@
+// RUN: clang-cc -fsyntax-only -Werror -verify %s
+
+@interface MyClass {
+ const char *_myName;
+}
+
+@property const char *myName;
+
+- (const char *)myName;
+- (void)setMyName:(const char *)name;
+
+@end
+
+@implementation MyClass
+
+@synthesize myName = _myName;
+
+@end
OpenPOWER on IntegriCloud