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
tree wide: don't print offset into function
[smatch.git]
/
validation
/
sm_select2.c
blob
2af18b8500c8cfa80855e50be96b365412e81226
1
#include
"check_debug.h"
2
3
int
check
();
4
5
int
x
,
y
,
z
;
6
int
func
(
void
)
7
{
8
int
*
sd
= &
x
;
9
10
while
(!(!
sd
? -
19
:
11
(*
sd
?
12
check
() : -
515
)))
13
__smatch_value
(
"sd"
);
14
}
15
/*
16
* check-name: Ternary Conditions #2
17
* check-command: smatch -I.. sm_select2.c
18
*
19
* check-output-start
20
sm_select2.c:13 func() sd = min-(-1),1-max
21
* check-output-end
22
*/