aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/array-struct.c
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-10-27 09:19:25 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-10-27 09:19:25 +0000
commit234a7d2bf50ba55496433f896577838407119e1a (patch)
tree2a96ca5166513da28b7f38da074d983b43de9276 /test/Analysis/array-struct.c
parentd03eea038271ab3a3be73e11c8fd7852effcf7f7 (diff)
Add test for SCA region store.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r--test/Analysis/array-struct.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c
index 4b23421a3d..911f41870d 100644
--- a/test/Analysis/array-struct.c
+++ b/test/Analysis/array-struct.c
@@ -6,6 +6,10 @@ struct s {
int data_array[10];
};
+typedef struct {
+ int data;
+} STYPE;
+
void f(void) {
int a[10];
int (*p)[10];
@@ -24,3 +28,7 @@ void f2() {
char (*q)[4];
q = &"abc";
}
+
+void f3() {
+ STYPE s;
+}