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
Don't try calling lsl when file is missing.
[splint-patched.git]
/
test
/
lintcomments.c
blob
13d6f5f48491b2c8ea02c1957699c90520d69502
1
int
f
(
int
x
)
2
{
3
int
i
=
0
;
4
5
switch
(
x
)
6
{
7
case
1
:
i
++;
/*@fallthrough@*/
/*FALLTHROUGH*/
8
case
2
:
i
++;
/*FALLTHROUGH*/
9
case
3
:
i
++;
/*FALLTHRU*/
10
case
4
:
i
++;
11
default
:
i
++;
12
}
13
14
if
(
i
>
2
)
15
{
16
return
i
;
17
/*@notreached@*/
18
i
++;
19
}
20
else
21
{
22
return
i
;
23
/*NOTREACHED*/
24
i
++;
25
}
26
27
/*@notreached@*/
return
3
;
28
}