diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-30 05:51:19 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-30 05:51:19 +0000 |
commit | 27cae9e327eac1352e5159cba7feb72080ce1232 (patch) | |
tree | ddcac07d5287d9c634c055f9d8ac2a444781cb08 /test/Analysis/array-struct.c | |
parent | 6987c7b74146b9658b1925c5981f8b0cd0672b55 (diff) |
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
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r-- | test/Analysis/array-struct.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index 38e489e2a2..139ee3ee25 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c @@ -78,3 +78,10 @@ void f8() { 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"; +} |