]> granicus.if.org Git - clang/commitdiff
Add a test case for init expr of array and struct type.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 23 Jan 2009 10:23:13 +0000 (10:23 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 23 Jan 2009 10:23:13 +0000 (10:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62845 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/array-struct.c

index 4257220f9bd65a7bde2868ed359a5245e461ce1c..326c2888a0b99cdefe50491fca7a22f893285832 100644 (file)
@@ -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.