Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 /* { dg-options "-Wl,--stack,12582912" { target *-*-mingw* *-*-cygwin* } } */ |
2 /* { dg-require-effective-target size32plus } */ | |
3 | |
4 void abort (void); | |
5 | |
6 void foo (int N) | |
7 { | |
8 int i, j; | |
9 int x[1000][1000]; | |
10 | |
11 for (i = 0; i < N; i++) | |
12 for (j = 0; j < N; j++) | |
13 x[i][j] = i + j + 3; | |
14 | |
15 for (i = 0; i < N; i++) | |
16 for (j = 0; j < N; j++) | |
17 if (x[i][j] != i + j + 3) | |
18 abort (); | |
19 } | |
20 | |
21 int main(void) | |
22 { | |
23 foo (1000); | |
24 | |
25 return 0; | |
26 } | |
27 |