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
Integer promotion: leave sufficiently large integer types as themselves
[smatch.git]
/
validation
/
bad-ternary-cond.c
blob
d502931f561ae6d7e479524ef48060a7556da7e4
1
// should warn: "warning: Expected : in conditional expression"
2
// and should not segfault
3
4
static int
foo
(
int
a
)
5
{
6
return
a
??
1
:
0
;
7
}