summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/property-10.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/property-10.m')
-rw-r--r--test/SemaObjC/property-10.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaObjC/property-10.m b/test/SemaObjC/property-10.m
index bd07df6..0119273 100644
--- a/test/SemaObjC/property-10.m
+++ b/test/SemaObjC/property-10.m
@@ -20,3 +20,9 @@
@property(nonatomic,copy) int (*includeMailboxCondition2)(); // expected-error {{property with 'copy' attribute must be of object type}}
@end
+
+@interface I0()
+@property (retain) int PROP; // expected-error {{property with 'retain' attribute must be of object type}}
+@property(nonatomic,copy) int (*PROP1)(); // expected-error {{property with 'copy' attribute must be of object type}}
+@end
+
OpenPOWER on IntegriCloud