Debian Codegraph @

gcc/testsuite/gcc.dg/analyzer/torture/loop-inc-ptr-3.c

raw
1 /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
2
3 #include "../analyzer-decls.h"
4
5 void test (int *p, int a, int b, int count)
6 {
7 int n = count;
8 __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */
9
10 while (n--)
11 {
12 __analyzer_dump_exploded_nodes (0); /* { dg-warning "2|3 processed enodes" } */
13 *p++ = a;
14 *p++ = b;
15 }
16
17 __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */
18 }