aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/pr93375.c
blob: 34ca68b6417b3555fad900ae51ac7865dfec0ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-additional-options "-std=gnu17 -Wno-implicit-int" } */

extern void foo (void *) __attribute__((nonnull));

void
en (jm)
{
}

void
p2 ()
{
  char *rl = 0;

  en ();
  foo (rl); /* { dg-warning "use of NULL 'rl' where non-null expected" } */
}