comparison gcc/testsuite/gcc.dg/analyzer/malloc-5.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 #include <stdlib.h>
2
3 void test (void)
4 {
5 void *p = malloc (sizeof (int));
6 if (!p)
7 return;
8 int *q = p;
9 if (!q)
10 return;
11 free (q);
12 }