Debian Codegraph @

gcc/testsuite/gcc.dg/analyzer/pr113505.c

raw
1 /* PR analyzer/113505 */
2 /* { dg-additional-options "-O -fdump-analyzer" } */
3
4 enum E **foo () __attribute__((__const__));
5 char a[2];
6 void bar (char *);
7
8 void
9 baz (void)
10 {
11 char *s, *l;
12 for (;;)
13 {
14 bar (a);
15 s = a;
16 while (foo ()[*s])
17 s++;
18 l = s;
19 *l++ = '\0';
20 while (foo ()[*l])
21 l++;
22 bar (s);
23 }
24 }