view gcc/testsuite/gcc.dg/analyzer/pr93375.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* { dg-additional-options "-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" } */
}