summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/synthesized-ivar.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/synthesized-ivar.m')
-rw-r--r--test/SemaObjC/synthesized-ivar.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaObjC/synthesized-ivar.m b/test/SemaObjC/synthesized-ivar.m
index 465caf2..58bcf40 100644
--- a/test/SemaObjC/synthesized-ivar.m
+++ b/test/SemaObjC/synthesized-ivar.m
@@ -11,3 +11,6 @@
return IP;
}
@end
+
+// rdar: // 7823675
+int f0(I *a) { return a->IP; } // expected-error {{instance variable 'IP' is protected}}
OpenPOWER on IntegriCloud