* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / loop-6.c
blob653854eb8a097d380436e84733d189ad8cb392a8
1 /* PR optimization/18577 */
2 /* Origin: Falk Hueffner <falk@debian.org> */
4 /* { dg-do run } */
5 /* { dg-options "-O2 -funroll-all-loops" } */
7 static float tfcos12[3];
8 __attribute__((noinline)) double f(double x) { return x; }
9 int g;
11 int main(void)
13 int i, j;
14 for (i = 0; i < 1; i++)
15 tfcos12[i] = 0.5;
17 for (i = 0; i < 1; i++)
19 tfcos12[i] = 0.5 * f(i);
20 for (j = 0; j < 12; j++)
21 g++;
24 return 0;