1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
3 
4 int a[1024];
5 int b[1024], c[1024];
foo()6 void foo ()
7 {
8   for (int j = 0; j < 1024; ++j)
9     {
10       for (int i = 0; i < 1024; ++i)
11 	a[i] = j;
12       b[j] = c[j];
13     }
14 }
15 
16 /* We should not hoist/PRE the outer loop IV increment or the load
17    from c across the inner loop.  */
18 
19 /* { dg-final { scan-tree-dump-not "HOIST inserted" "pre" } } */
20