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
Looks more evident this way.
[smatch.git]
/
validation
/
bad-cast.c
blob
4eb4a8eb9765974d61bf6b5b26448b7a4236b2fb
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:16: error: expected declaration
12
bad-cast.c:5:16: error: Expected ) at end of cast operator
13
bad-cast.c:5:16: error: got /
14
* check-error-end
15
*/