view gcc/testsuite/gcc.dg/analyzer/malloc-5.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

#include <stdlib.h>

void test (void)
{
  void *p = malloc (sizeof (int));
  if (!p)
    return;
  int *q = p;
  if (!q)
    return;
  free (q);
}