Implement retrieval of the default value of element and field regions.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62847 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c
index 326c288..a8de824 100644
--- a/test/Analysis/array-struct.c
+++ b/test/Analysis/array-struct.c
@@ -87,3 +87,11 @@
   char a1[4] = "abc";
   char a3[6] = "abc";
 }
+
+// Retrieve the default value of element/field region.
+void f11() {
+  struct s a;
+  g(&a);
+  if (a.data == 0) // no-warning
+    a.data = 1;
+}