Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr77646.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-std=gnu17" } */
3
4 struct e {
5 int (*f)();
6 void (*g)();
7 } * c;
8 int a;
9 void *h();
10 typedef struct { struct e j; } k;
11 int l() { return a; }
12 const struct e b = {l};
13 void m()
14 {
15 k *d = h();
16 d->j = b;
17 c = (struct e *)d;
18 struct e *i = c;
19 if (i->f(c))
20 while (i->f(c))
21 i->g();
22 }