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
assumed_nonnull crap... temp fix.
[smatch.git]
/
validation
/
bad-ternary-cond.c
blob
d5944e9b58ff40721f1bc2fec69f6c33e636bcee
1
static int
foo
(
int
a
)
2
{
3
return
a
??
1
:
0
;
4
}
5
/*
6
* check-name: Bad ternary syntax
7
* check-description: Once caused Sparse to segfault
8
* check-error-start
9
bad-ternary-cond.c:3:12: error: Expected : in conditional expression
10
bad-ternary-cond.c:3:12: error: got ?
11
* check-error-end
12
*/