Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-hoist-6.c
blob0ddaa0d87fdd0e9d0ad55dd0ac807592be260106
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
4 int a[1024];
5 int b[1024], c[1024];
6 void foo ()
8 for (int j = 0; j < 1024; ++j)
10 for (int i = 0; i < 1024; ++i)
11 a[i] = j;
12 b[j] = c[j];
16 /* We should not hoist/PRE the outer loop IV increment or the load
17 from c across the inner loop. */
19 /* { dg-final { scan-tree-dump-not "HOIST inserted" "pre" } } */