1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -ftree-loop-distribution -fno-tree-scev-cprop" } */ 3 4 extern void bar(int); 5 6 void foo(int i,int n)7foo (int i, int n) 8 { 9 int a[30]; 10 int b[30]; 11 for (; i < n; i++) 12 a[i] = b[i] = 0; 13 14 while (1) 15 if (b[0]) 16 bar (a[i - 1]); 17 } 18