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