Debian Codegraph @

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

raw
1 /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
2
3 #include "../analyzer-decls.h"
4
5 void test (int *p, int val, 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 "3 processed enodes" } */
13 *p++ = val;
14 }
15
16 __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */
17 }