repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
scripts: fix typos
[smatch.git]
/
validation
/
infinite-loop03.c
blob
7af877a83e95969f29ac3fa99fa9516501891f41
1
static void
foo
(
int
*
buf
)
2
{
3
int
a
=
1
;
4
int
*
b
;
5
do
{
6
if
(
a
)
7
b
=
buf
;
8
if
(
a
)
9
*
buf
=
0
;
10
}
while
(!(
a
= !
a
));
11
}
12
13
/*
14
* check-name: infinite loop 03
15
* check-command: sparse -Wno-decl $file
16
* check-timeout:
17
*/