aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gcc.dg/graphite/run-id-pr47654.c
blob: 85b6e8b70f5e853cbf4ff3f342db3d0fa84632fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-options "-O -floop-strip-mine" } */

int a[128][40];

void __attribute__ ((noinline, noclone))
foo (void)
{
  int i, j;
  for (i = 0; i < 40; i++)
    for (j = 0; j < 128; j++)
      a[j][i] = 4;
}

int
main ()
{
  int i, j;
  foo ();
  for (i = 0; i < 40; i++)
    for (j = 0; j < 128; j++)
      if (a[j][i] != 4)
	__builtin_abort ();
  return 0;
}