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
/
tests2.5
/
booltest.c
blob
1c4e3eb538d5cfdffffc3f57db6372d8e940560a
1
/*
2
** Boolean type checking
3
*/
4
// bool is now defined in the standard library
5
#include<stdbool.h>
6
7
bool
f
(
int
i
,
bool
b
) {
8
if
(
i
) {
/* error with -boolint -predboolint */
9
return
i
;
/* error with -boolint */
10
}
else
{
11
return
b
;
/* okay */
12
}
13
}
14