Array subscription in aggregate expression

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45023 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/struct.c b/test/CodeGen/struct.c
index 34cbec5..a52e538 100644
--- a/test/CodeGen/struct.c
+++ b/test/CodeGen/struct.c
@@ -94,6 +94,11 @@
   range r = *p;
 }
 
+void f10(range *p)
+{
+  range r = p[0];
+}
+
 /* _Bool types */
 
 struct _w