]> andersk Git - splint.git/blame - test/cast.expect
noexpand always false.
[splint.git] / test / cast.expect
CommitLineData
885824d3 1
2cast.c:1:13: Mutable abstract type abst1 declared without pointer indirection:
3 int (violates assignment semantics)
4cast.c:1:20: Mutable abstract type abst2 declared without pointer indirection:
5 int (violates assignment semantics)
6cast.c: (in function main)
7cast.c:6:13: Variable b initialized to type int, expects abst2: 3
8cast.c:7:25: Cast to underlying abstract type abst2 *:
9 (abst2 *)malloc(sizeof(abst2))
10cast.c:11:10: Dereference of possibly null pointer ip: *ip
11 cast.c:9:14: Storage ip may become null
12cast.c:12:10: Dereference of possibly null pointer bp: *bp
13 cast.c:7:15: Storage bp may become null
14cast.c:12:9: Assignment of int to abst2: *bp = 5
15cast.c:13:21: Cast to abstract type abst1: (abst1)ip
16cast.c:14:24: Cast to underlying abstract type abst1 *: (abst1 *)ip
17cast.c:15:22: Cast to underlying abstract type FILE *: (FILE *)ip
18cast.c:16:21: Redundant cast involving abstract type abst1: (abst1)a
19cast.c:17:22: Cast from underlying abstract type abst1 *: (int *)ap
20cast.c:18:22: Cast from underlying abstract type FILE *: (int *)f
21cast.c:19:22: Cast from underlying abstract type abst1: (int *)a
22cast.c:20:21: Cast from abstract type abst2: (abst1)b
23cast.c:20:21: Cast to abstract type abst1: (abst1)b
24cast.c:21:24: Cast to underlying abstract type abst1 *: (abst1 *)bp
25cast.c:21:24: Cast from underlying abstract type abst2 *: (abst1 *)bp
26cast.c:22:19: Owned storage ap not released before return
27 cast.c:21:10: Storage ap becomes owned
28cast.c:22:19: Last reference ip to owned storage a not released before return
29 cast.c:20:10: Original reference lost
30
11db3170 31Finished checking --- 20 code warnings, as expected
885824d3 32
33cast2.c: (in function f1)
34cast2.c:9:10: Implicitly temp storage x returned as implicitly only: x
35cast2.c:9:10: Function returns reference to parameter x: x
36cast2.c: (in function f2)
37cast2.c:15:10: Implicitly dependent storage x returned as implicitly only:
38 (abst1)x
39
11db3170 40Finished checking --- 3 code warnings, as expected
This page took 0.405934 seconds and 5 git commands to generate.