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
smatch_data/kernel.unreachable.ignore: add BUG(), WARN_ON() and others
[smatch.git]
/
validation
/
empty-expr.c
blob
61decf7370997f3898f6e3f698db44fb0fb557b7
1
static int
foo
(
void
)
2
{
3
switch
() {
4
case
0
:
5
return
0
;
6
default
:
7
return
1
;
8
}
9
}
10
11
static int
bar
(
void
)
12
{
13
if
()
14
return
0
;
15
else
16
return
1
;
17
}
18
19
/*
20
* check-name: empty expression
21
*
22
* check-error-start
23
empty-expr.c:3:17: error: an expression is expected before ')'
24
empty-expr.c:13:13: error: an expression is expected before ')'
25
* check-error-end
26
*/