aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/array-struct.c
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-01-23 10:23:13 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-01-23 10:23:13 +0000
commitb61f49cb3cd6ec8c9b17b48173370b3ce16f79b0 (patch)
treeb9260252243420fc218b800bade362ce7febad17 /test/Analysis/array-struct.c
parentc496f14291b6577cf9bb1737efae01cce71182e2 (diff)
Add a test case for init expr of array and struct type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r--test/Analysis/array-struct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c
index 4257220f9b..326c2888a0 100644
--- a/test/Analysis/array-struct.c
+++ b/test/Analysis/array-struct.c
@@ -44,6 +44,7 @@ void f3() {
void f4() {
int a[] = { 1, 2, 3};
int b[3] = { 1, 2 };
+ struct s c[] = {{1,{1}}};
}
// Struct variable in lvalue context.