]> granicus.if.org Git - clang/commitdiff
Add test cast for struct array.
authorZhongxing Xu <xuzhongxing@gmail.com>
Tue, 18 Nov 2008 13:30:46 +0000 (13:30 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Tue, 18 Nov 2008 13:30:46 +0000 (13:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59522 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/array-struct.c

index 5f7331efa206d8a1356199f364e25a9987b27090..1045bdb6456f98dd255c982de6f60f0aadaed2cc 100644 (file)
@@ -64,3 +64,7 @@ void f8() {
   int a[10];
   a[sizeof(a) - 1] = 1;
 }
+
+void f9() {
+  struct s a[10];
+}