1 /* { dg-options "-O2 -floop-nest-optimize" } */ 2 3 int m[1]; 4 5 void foo(double a[20][20],double b[20])6foo (double a[20][20], double b[20]) 7 { 8 int i, j, k; 9 10 for (i = 0; i < m[0]; ++i) 11 for (j = 0; j < m[0]; ++j) 12 a[i][j] = a[i][j] + 1; 13 14 for (k = 0; k < 20; ++k) 15 for (i = 0; i < m[0]; ++i) 16 for (j = 0; j < m[0]; ++j) 17 b[i] = b[i] + a[i][j]; 18 } 19 20