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
rosenberg_funcs: warn about information leaks to the network
[smatch.git]
/
validation
/
bad-ternary-cond.c
blob
e3d07b5171d63e04d26ed6bb3529bfa4ceb1f624
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:19: error: Expected : in conditional expression
10
bad-ternary-cond.c:3:19: error: got ?
11
* check-error-end
12
*/