[cfe-commits] r60281 - /cfe/trunk/test/Analysis/array-struct.c
Zhongxing Xu
xuzhongxing at gmail.com
Sat Nov 29 21:51:20 PST 2008
Author: zhongxingxu
Date: Sat Nov 29 23:51:19 2008
New Revision: 60281
URL: http://llvm.org/viewvc/llvm-project?rev=60281&view=rev
Log:
Add test for initializing array with string literal.
Modified:
cfe/trunk/test/Analysis/array-struct.c
Modified: cfe/trunk/test/Analysis/array-struct.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/array-struct.c?rev=60281&r1=60280&r2=60281&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/array-struct.c (original)
+++ cfe/trunk/test/Analysis/array-struct.c Sat Nov 29 23:51:19 2008
@@ -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";
+}
More information about the cfe-commits
mailing list