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
slist, stree: add overwrite_sm_state_stree_stack() to header
[smatch.git]
/
validation
/
bad-cast.c
blob
bf577e00949a919457b1f7172bc5630eb6d0e2f5
1
struct
st
;
2
3
static int
foo
(
int
a
)
4
{
5
return
(
struct
/
st
*)
a
;
6
}
7
/*
8
* check-name: Bad cast syntax
9
*
10
* check-error-start
11
bad-cast.c:5:23: error: expected declaration
12
bad-cast.c:5:23: error: Expected ) at end of cast operator
13
bad-cast.c:5:23: error: got /
14
* check-error-end
15
*/