1 /* { dg-do run } */ 2 /* { dg-options "-Os -ftree-loop-linear" } */ 3 4 #define N 16 5 6 int main1(int n,int * a)7main1 (int n, int *a) 8 { 9 int i, j; 10 11 for (i = 0; i < n; i++) 12 for (j = 0; j < n; j++) 13 a[j] = i + n; 14 15 for (j = 0; j < n; j++) 16 if (a[j] != i + n - 1) 17 __builtin_abort (); 18 19 return 0; 20 } 21 22 int main()23main () 24 { 25 int a[N]; 26 main1 (N, a); 27 return 0; 28 } 29