1 /* { dg-additional-options "-fanalyzer-transitivity" } */
4 #include "analyzer-decls.h"
6 int test_1 (int a
, int b
)
16 __analyzer_dump_exploded_nodes (0); /* { dg-warning "3 processed enodes" } */
21 __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */
24 return 0; /* { dg-bogus "leak" } */
27 int test_2 (int a
, int b
)
37 __analyzer_dump_exploded_nodes (0); /* { dg-warning "3 processed enodes" } */
39 if (a
> 6) /* different condition */
42 __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */
45 return 0; /* { dg-warning "leak of 'p'" } */
46 /* leaks when a == 5. */