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
Add "argument pseudo" for incoming arguments to a function.
[smatch.git]
/
validation
/
cond_expr.c
blob
afd359523ecc3ade2cd25c597beee2e424711b82
1
/*
2
* Bug in original tree: (real_v ? : x) had been treated as equivalent of
3
* (real_v == 0 ? real_v == 0 : x), which gives the wrong type (and no
4
* warning from the testcase below).
5
*/
6
int
x
;
7
double
y
;
8
int
a
(
void
)
9
{
10
return
~(
y
? :
x
);
/* should warn */
11
}