libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gcc.dg / pr27335.c
blobd08db30bdbfc0752a629917fcea6f871bb743e42
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -funroll-loops" } */
4 extern void bar () __attribute__ ((noreturn));
6 inline double
7 baz (double *x, unsigned int y)
9 if (y >= 6)
10 bar ();
11 return x[y];
14 double *a, *b;
16 void
17 foo ()
19 unsigned int r, s, t;
21 for (r = 0; r < 2; r++)
22 for (t = 0; t < 2; t++)
24 for (s = 0; s < 3; s++)
25 b[r * 2 + t] += baz (a, 3 * s + t);