commit | c8f73c506be90f16b5fd1355c121cff18bfb4a90 | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Sun Nov 30 05:51:19 2008 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Sun Nov 30 05:51:19 2008 +0000 |
tree | ddcac07d5287d9c634c055f9d8ac2a444781cb08 | |
parent | 9faabb10fb689d8d5d95b0a2daaac8bad9a644f6 [diff] [blame] |
Add test for initializing array with string literal. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60281 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index 38e489e..139ee3e 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c
@@ -78,3 +78,10 @@ void f9() { struct s a[10]; } + +// Initializing array with string literal. +void f10() { + char a1[4] = "abc"; + char a2[2] = "abc"; + char a3[6] = "abc"; +}