repo.or.cz
/
splint-patched.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Some consistency changes to library & headers flags.
[splint-patched.git]
/
test
/
mergenull.c
blob
0026126cf8a8e7486efe043e95c77bda6e274594
1
/*
2
** Added 2001-12-29
3
** Test for branchstate bug reported by Jon Wilson
4
*/
5
6
typedef
/*@null@*/
struct
s_foo
*
foo
;
7
8
struct
s_foo
{
9
foo p
;
10
} ;
11
12
void
f
(
foo a
)
13
{
14
while
(
a
!=
NULL
) {
15
foo temp
=
a
->
p
;
16
a
->
p
=
NULL
;
17
a
=
temp
;
18
}
19
}
20