aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.dg/graphite/run-id-1.c
blob: a58c090e8fdd2478e0949fc769690b2b9432b51a (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
25
26
27
/* { dg-options "-Wl,--stack,12582912" { target *-*-mingw* *-*-cygwin* } } */
/* { dg-require-effective-target size32plus } */

void abort (void);

void foo (int N)
{
  int i, j;
  int x[1000][1000];

  for (i = 0; i < N; i++)
    for (j = 0; j < N; j++)
      x[i][j] = i + j + 3;

  for (i = 0; i < N; i++)
    for (j = 0; j < N; j++)
      if (x[i][j] != i + j + 3)
	abort ();
}

int main(void)
{
  foo (1000);

  return 0;
}