aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58626.c
blob: 1416384b7a6f7e511a150370dd722512c6ed3e46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do run } */

extern void abort (void);

int a[8][6] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };
int b;

int main(void)
{
  for (b = 0; b <= 1; b++) {
      a[1][3] = 0;
      int c;
      for (c = 0; c <= 1; c++) {
	  a[c + 1][b] = a[c + 2][b];
      }
  }
  if (a[1][1] != 1)
    abort ();
  return 0;
}