free_strict: silence some kfree_skb() false positives
[smatch.git] / validation / eval / premature-examination.c
blobbd2ffa90051a6b2d17d8a77f3d962b56d095496e
1 extern int i;
3 int foo(void)
5 return *i;
8 int bar(void)
10 return i[0];
13 int *qux(void)
15 return &i[0];
19 * check-name: premature-examination
20 * check-command: sparse -Wno-decl $file
22 * check-error-start
23 eval/premature-examination.c:5:16: error: cannot dereference this type
24 eval/premature-examination.c:10:17: error: cannot dereference this type
25 eval/premature-examination.c:15:18: error: cannot dereference this type
26 * check-error-end