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
/
sm_indirection1.c
blob
0906d2156b6988a73b0c90a7c7683619cd9f248e
1
#include
"check_debug.h"
2
3
int
a
;
4
5
int
frob
(
int
size
)
6
{
7
int
*
p
= &
a
;
8
9
*
p
=
42
;
10
__smatch_implied
(
a
);
11
12
return
0
;
13
}
14
15
/*
16
* check-name: smatch: pointer indirection #1
17
* check-command: smatch -p=kernel -I.. sm_indirection1.c
18
*
19
* check-output-start
20
sm_indirection1.c:10 frob() implied: a = '42'
21
* check-output-end
22
*/