From 5c75919093d4db543a39cc167fd2eb18842fc6a0 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sun, 30 Nov 2008 05:51:19 +0000 Subject: Add test for initializing array with string literal. llvm-svn: 60281 --- clang/test/Analysis/array-struct.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/Analysis/array-struct.c') diff --git a/clang/test/Analysis/array-struct.c b/clang/test/Analysis/array-struct.c index 38e489e2a23..139ee3ee25b 100644 --- a/clang/test/Analysis/array-struct.c +++ b/clang/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"; +} -- cgit v1.2.3