1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -funroll-loops" } */ 3 4 extern void bar () __attribute__ ((noreturn)); 5 6 inline double baz(double * x,unsigned int y)7baz (double *x, unsigned int y) 8 { 9 if (y >= 6) 10 bar (); 11 return x[y]; 12 } 13 14 double *a, *b; 15 16 void foo()17foo () 18 { 19 unsigned int r, s, t; 20 21 for (r = 0; r < 2; r++) 22 for (t = 0; t < 2; t++) 23 { 24 for (s = 0; s < 3; s++) 25 b[r * 2 + t] += baz (a, 3 * s + t); 26 } 27 } 28