xref: /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/931102-2.c (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1*c87b03e5Sespie typedef struct {
2*c87b03e5Sespie   int a;
3*c87b03e5Sespie } VCR;
4*c87b03e5Sespie 
5*c87b03e5Sespie typedef struct {
6*c87b03e5Sespie   VCR vcr[8];
7*c87b03e5Sespie } VCRC;
8*c87b03e5Sespie 
9*c87b03e5Sespie typedef struct {
10*c87b03e5Sespie   char vcr;
11*c87b03e5Sespie } OWN;
12*c87b03e5Sespie 
13*c87b03e5Sespie OWN Own[16];
14*c87b03e5Sespie 
f(x,own)15*c87b03e5Sespie f (x, own)
16*c87b03e5Sespie   VCRC *x;
17*c87b03e5Sespie   OWN *own;
18*c87b03e5Sespie {
19*c87b03e5Sespie   x[own->vcr / 8].vcr[own->vcr % 8].a--;
20*c87b03e5Sespie   x[own->vcr / 8].vcr[own->vcr % 8].a = x[own->vcr / 8].vcr[own->vcr % 8].a;
21*c87b03e5Sespie }
22