Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / analyzer / malloc-paths-10.c
blobef88388267ba13254c6d0ceda3c0f15d9cc001f0
1 #include <stdlib.h>
2 #include "analyzer-decls.h"
4 int test (int flag)
6 int other_flag;
7 if (flag)
8 other_flag = 1;
9 else
10 other_flag = 0;
12 /* With state-merging, we lose the relationship between 'flag' and 'other_flag'. */
13 __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */
15 if (other_flag)
16 __analyzer_eval (flag); /* { dg-warning "UNKNOWN" } */
17 else
18 __analyzer_eval (flag); /* { dg-warning "UNKNOWN" } */