summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/property-ivar-mismatch.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/property-ivar-mismatch.m')
-rw-r--r--test/SemaObjC/property-ivar-mismatch.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaObjC/property-ivar-mismatch.m b/test/SemaObjC/property-ivar-mismatch.m
index 6abd6e6..a0d1c9d 100644
--- a/test/SemaObjC/property-ivar-mismatch.m
+++ b/test/SemaObjC/property-ivar-mismatch.m
@@ -12,3 +12,15 @@
@synthesize prop = ivar; // expected-error {{type of property 'prop' ('int') does not match type of ivar 'ivar' ('char')}}
@end
+
+@interface Test5
+{
+ void * _P; // expected-note {{ivar is declared here}}
+}
+@property int P;
+@end
+
+@implementation Test5
+@synthesize P=_P; // expected-error {{ype of property 'P' ('int') does not match type of ivar '_P' ('void *')}}
+@end
+
OpenPOWER on IntegriCloud