Add StringLiteral test code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58136 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c
index e35985c..4b23421 100644
--- a/test/Analysis/array-struct.c
+++ b/test/Analysis/array-struct.c
@@ -1,4 +1,5 @@
// RUN: clang -checker-simple -verify %s
+// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
@@ -17,3 +18,9 @@
q->data = 3;
d.data_array[9] = 17;
}
+
+void f2() {
+ char *p = "/usr/local";
+ char (*q)[4];
+ q = &"abc";
+}