1 /* { dg-do run } */ 2 /* { dg-options "-O2 -fno-inline -fno-tree-ch -ftree-loop-linear" } */ 3 4 extern void abort (); 5 6 int test(int n,int * a)7test (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 if (a[0] != 31 || i + n - 1 != 31) 16 abort (); 17 18 return 0; 19 } 20 main(void)21int main (void) 22 { 23 int a[16]; 24 test (16, a); 25 return 0; 26 } 27