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
check_deref: use add_dereference_hook()
[smatch.git]
/
validation
/
memops
/
kill-dead-store-parent0.c
blob
c1b2466ca4507bbe830aed94749284c3d862d8de
1
void
foo
(
int
*
ptr
,
int
p
)
2
{
3
if
(
p
)
4
*
ptr
=
1
;
5
*
ptr
=
0
;
6
}
7
8
/*
9
* check-name: kill-dead-store-parent0
10
* check-command: test-linearize -Wno-decl $file
11
*
12
* check-output-ignore
13
* check-output-pattern(1): store
14
*/