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
smatch_data/kernel.unreachable.ignore: add BUG(), WARN_ON() and others
[smatch.git]
/
validation
/
check_access-store.c
blob
489507fd7bd722742d73a98872bf60a0e9edd7e6
1
extern
int
a
[
1
];
2
3
static int
r
(
void
)
4
{
5
return
a
[
1
];
6
}
7
8
static void
w
(
void
)
9
{
10
a
[
1
] =
2
;
11
}
12
13
/*
14
* check-name: check_access-store
15
* check-known-to-fail
16
*
17
* check-error-start
18
check_access-store.c:5:17: warning: invalid access past the end of 'a' (4 4)
19
check_access-store.c:10:17: warning: invalid access past the end of 'a' (4 4)
20
* check-error-end
21
*/