aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr112281-2.c
blob: d7671e3322b4d5405557a3fca9e5c9c53f5081e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do run } */
/* { dg-additional-options "-ftree-loop-distribution" } */

struct {
  int : 8;
  int a;
} b, d[4] = {{5}, {0}, {0}, {0}};
int c, e;
int main() {
  for (c = 0; c < 2; c++)
    for (e = 0; e < 2; e++) {
      d[c + 1] = b = d[c];
      d[c].a = 0;
    }
  if (b.a != 0)
    __builtin_abort();
  return 0;
}