]> andersk Git - splint.git/blobdiff - test/arrayinit.expect
Fixed processing of multi-dimensional arrays.
[splint.git] / test / arrayinit.expect
index f7ed636619095dfff6ce167705c5cca15a96203f..7d4bb3cc00bc82f00592028fb94052ed4dd9721a 100644 (file)
@@ -4,37 +4,18 @@ arrayinit.c:1:12: Initializer block for x has 4 elements, but declared as int
 arrayinit.c:2:12: Initializer block for a has 2 elements, but declared as int
                      [3]: 1, 2
 arrayinit.c:3:16: Initializer block for aa has 2 elements, but declared as int
-                     [3] [3]: { 1, 2, 3 }, { 4, 5 }
+                     [3][3]: { 1, 2, 3 }, { 4, 5 }
 arrayinit.c:4:18: Initializer block for aa[1] has 2 elements, but declared as
                      int [3]: 4, 5
-arrayinit.c:10:15: String literal with 3 characters is assigned to char [3] (no
+arrayinit.c:10:15: String literal with 4 characters is assigned to char [3] (no
                       room for null terminator): "abc"
-arrayinit.c:11:15: Stirng literal with 4 characters (counting null terminator)
+arrayinit.c:11:15: String literal with 5 characters (counting null terminator)
     is assigned to char [3] (insufficient storage available): "abcd"
-arrayinit.c:14:40: String literal with 3 characters is assigned to char [3] (no
+arrayinit.c:14:40: String literal with 4 characters is assigned to char [3] (no
                       room for null terminator): "def"
-arrayinit.c:14:47: Stirng literal with 5 characters (counting null terminator)
+arrayinit.c:14:47: String literal with 6 characters (counting null terminator)
     is assigned to char [3] (insufficient storage available): "gasdf"
+arrayinit.c:17:22: Initializer block for a3[1] has 3 elements, but declared as
+                      int [2]: 3, 4, 5
 
-Finished LCLint checking --- 8 code errors found, as expected
-
-arrayinit.c:1:12: Initializer block for x has 4 elements, but declared as int
-                     [3]: 1, 2, 3, 4
-arrayinit.c:2:12: Initializer block for a has 2 elements, but declared as int
-                     [3]: 1, 2
-arrayinit.c:3:16: Initializer block for aa has 2 elements, but declared as int
-                     [3] [3]: { 1, 2, 3 }, { 4, 5 }
-arrayinit.c:4:18: Initializer block for aa[1] has 2 elements, but declared as
-                     int [3]: 4, 5
-arrayinit.c:10:15: String literal with 3 characters is assigned to char [3] (no
-                      room for null terminator): "abc"
-arrayinit.c:11:15: Stirng literal with 4 characters (counting null terminator)
-    is assigned to char [3] (insufficient storage available): "abcd"
-arrayinit.c:12:15: String literal with 1 character is assigned to char [3]
-                      (possible waste of storage): "a"
-arrayinit.c:14:40: String literal with 3 characters is assigned to char [3] (no
-                      room for null terminator): "def"
-arrayinit.c:14:47: Stirng literal with 5 characters (counting null terminator)
-    is assigned to char [3] (insufficient storage available): "gasdf"
-
-Finished LCLint checking --- 9 code errors found, as expected
+Finished checking --- 9 code warnings, as expected
This page took 0.120534 seconds and 4 git commands to generate.