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