Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr115137.c

raw
1 /* { dg-do run } */
2
3 struct a {
4 int b;
5 } c;
6
7 int d;
8 long e;
9
10 static void f(char *g, char *h, struct a *l) {
11 char a[1024];
12 int j = 0;
13
14 if (d)
15 h = a;
16
17 for (; g < h; g++)
18 if (__builtin_iscntrl(*g))
19 ++j;
20
21 while (l->b < j)
22 ;
23 }
24
25 int main() {
26 static const struct {
27 char *input;
28 } k[] = {{"somepage.html"}, {""}};
29
30 for (unsigned int i = 0; i < 1; ++i) {
31 e = __builtin_strlen(k[i].input);
32 f(k[i].input, k[i].input + e, &c);
33 }
34 }