summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/duplicate-property.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/duplicate-property.m')
-rw-r--r--clang/test/SemaObjC/duplicate-property.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/duplicate-property.m b/clang/test/SemaObjC/duplicate-property.m
new file mode 100644
index 0000000..bc1fe71
--- /dev/null
+++ b/clang/test/SemaObjC/duplicate-property.m
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+@interface Foo {
+ id x;
+}
+@property (nonatomic, retain) id x; // expected-note{{property declared here}}
+@property (nonatomic, retain) id x; // expected-error{{property has a previous declaration}}
+@end