https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81740

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Testcase modified for the testsuite:

int a[8][10] = { [2][5] = 4 }, c;

int
main ()
{
  short b;
  int i, d;
  for (b = 4; b >= 0; b--)
    for (c = 0; c <= 6; c++)
      a[c + 1][b + 2] = a[c][b + 1];
  for (i = 0; i < 8; i++)
    for (d = 0; d < 10; d++)
      if (a[i][d] != (i == 3 && d == 6) * 4)
        __builtin_abort ();
  return 0;
}

Reply via email to