1 /* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
4 #include "../../gcc.dg/analyzer/analyzer-decls.h"
6 extern void foo (int *);
10 __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */
12 for (int i
= 0; i
< n
; i
++)
14 int *ptr
= (int *)malloc (sizeof (int) * i
);
17 __analyzer_dump_exploded_nodes (0); /* { dg-warning "2 processed enodes" } */
20 __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */