gcc/testsuite/gcc.dg/graphite/scop-0.c
raw| 1 | /* { dg-require-effective-target size32plus } */ |
| 2 | int foo (void); |
| 3 | void bar (void); |
| 4 | |
| 5 | int toto() |
| 6 | { |
| 7 | /* Scop 1. */ |
| 8 | int i, j, k; |
| 9 | int a[201][100]; |
| 10 | int b[100]; |
| 11 | int N = foo (); |
| 12 | |
| 13 | for (i = 0; i < N+ 100; i++) |
| 14 | for (j = 0; j < 200; j++) |
| 15 | a[j][i] = a[j+1][10] + 2; |
| 16 | |
| 17 | return a[3][5] + b[1]; |
| 18 | /* End scop 1. */ |
| 19 | } |
| 20 | |
| 21 | /* { dg-final { scan-tree-dump-times "number of SCoPs: 1" 1 "graphite"} } */ |
| 22 |