warn when someone tries to make an array of ObjC interfaces instead of array
of pointers to them. rdar://4304469
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54953 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaObjC/interface-1.m b/test/SemaObjC/interface-1.m
index d93f29c..3170665 100644
--- a/test/SemaObjC/interface-1.m
+++ b/test/SemaObjC/interface-1.m
@@ -15,3 +15,13 @@
@end
+// rdar://4304469
+@interface INT1
+@end
+
+void test2() {
+ INT1 b[3]; // expected-warning {{array of interface 'INT1' should probably be array of pointers}}
+ INT1 *c = &b[0];
+ ++c;
+}
+