aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/pr96644.c
blob: 3953c8d58c4005276e093d379ec69a6044eedc3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-additional-options "-O1" } */

int oh[1];
int *x3;

int *
cm (char *m0)
{
  return oh;
}

void
ek (void)
{
  for (;;)
    {
      char *b2 = 0;

      if (*b2 != 0) /* { dg-warning "dereference of NULL" } */
	++b2;

      x3 = cm (b2);
    }
}