Debian Codegraph @

gcc/testsuite/c-c++-common/analyzer/pr96639.c

raw
1 void *calloc (__SIZE_TYPE__, __SIZE_TYPE__);
2
3 int
4 x7 (void)
5 {
6 int **md = (int **) calloc (1, sizeof (void *));
7
8 return md[0][0]; /* { dg-warning "possibly-NULL" "unchecked deref" } */
9 /* { dg-warning "Wanalyzer-null-dereference" "deref of NULL" { target *-*-* } .-1 } */
10 }