repo.or.cz
/
smatch
/
bkmgit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
checking_for_null_instead_of_err_ptr: use smatch_kernel_err_ptr.c
[smatch/bkmgit.git]
/
validation
/
optim
/
memops-missed01.c
blob
fc616f1976a1e8ffcbeff795544fa34f50e81e78
1
void
bar
(
int
);
2
3
void
foo
(
void
)
4
{
5
char
buf
[
1
] = {
42
};
6
const char
*
p
=
buf
;
7
const char
**
q
= &
p
;
8
int
ch
=
0
;
9
switch
(**
q
) {
10
case
4
:
11
ch
=
2
;
12
}
13
bar
(
ch
);
14
}
15
16
/*
17
* check-name: memops-missed01
18
* check-command: test-linearize -Wno-decl $file
19
*
20
* check-output-ignore
21
* check-output-excludes: store\\.
22
* check-output-excludes: load\\.
23
*/