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
Ignore casts. foo((int *)&bar) is the same as foo(&bar) to this script.
[smatch.git]
/
validation
/
badtype2.c
blob
aad725dfb5e30d7934533a996a901ddf41c111c3
1
//typedef int undef;
2
extern
undef
bar
(
void
);
3
static
undef
foo
(
char
*
c
)
4
{
5
char
p
= *
c
;
6
switch
(
p
) {
7
default
:
8
return
bar
();
9
}
10
}