1 /* PR tree-optimization/34016 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -ftree-loop-linear" } */ 4 5 extern void bar (double *); 6 foo(void)7void foo (void) 8 { 9 double gr[36]; 10 int i, j; 11 for (i = 0; i <= 5; i++) 12 { 13 for (j = 0; j <= 5; j++) 14 gr[i + j * 6] = 0.0; 15 if (i <= 2) 16 gr[i + i * 6] = 1.0; 17 } 18 bar (gr); 19 } 20