Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/921111-1.c

raw
1 /* { dg-additional-options "-std=gnu89" } */
2
3 int ps;
4 struct vp {
5 int wa;
6 };
7 typedef struct vp *vpt;
8 typedef struct vc {
9 int o;
10 vpt py[8];
11 } *vct;
12 struct n {
13 int a;
14 };
15 struct nh {
16 int x;
17 };
18 typedef struct np *npt;
19 struct np {
20 vct d;
21 int di;
22 };
23 struct nh xhp;
24 struct n np[3];
25
26 f(dp)
27 npt dp;
28 {
29 vpt *py;
30 int a, l, o = 0;
31 a = dp->d->o;
32 if (dp->di < 0)
33 l = ps;
34
35 if ((int)o & 3)
36 g();
37
38 xhp.x = a;
39 py = &dp->d->py[dp->di];
40 if (o + l > ps)
41 np[2].a = (int)(py[1])->wa;
42 }