annotate gcc/testsuite/gcc.dg/graphite/run-id-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-options "-Wl,--stack,12582912" { target *-*-mingw* *-*-cygwin* } } */
kono
parents:
diff changeset
2 /* { dg-require-effective-target size32plus } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 void abort (void);
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 void foo (int N)
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 int i, j;
kono
parents:
diff changeset
9 int x[1000][1000];
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 for (i = 0; i < N; i++)
kono
parents:
diff changeset
12 for (j = 0; j < N; j++)
kono
parents:
diff changeset
13 x[i][j] = i + j + 3;
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 for (i = 0; i < N; i++)
kono
parents:
diff changeset
16 for (j = 0; j < N; j++)
kono
parents:
diff changeset
17 if (x[i][j] != i + j + 3)
kono
parents:
diff changeset
18 abort ();
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 int main(void)
kono
parents:
diff changeset
22 {
kono
parents:
diff changeset
23 foo (1000);
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 return 0;
kono
parents:
diff changeset
26 }
kono
parents:
diff changeset
27