Fix <rdar://problem/5733511> clang doesn't emit error for const array.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46905 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/assign.c b/test/Sema/assign.c
index b94d583..4ddb25a 100644
--- a/test/Sema/assign.c
+++ b/test/Sema/assign.c
@@ -5,3 +5,11 @@
 void test2 (const struct {int a;} *x) {
   x->a = 10; // expected-error {{read-only variable is not assignable}}
 }
+
+typedef int arr[10];
+void test3() {
+  const arr b;
+  const int b2[10]; 
+  b[4] = 1; // expected-error {{read-only variable is not assignable}}
+  b2[4] = 1; // expected-error {{read-only variable is not assignable}}
+}