Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr54782.c
blob161b043c61b9395cb38915e07c89f17ad36bd782
1 /* { dg-do compile } */
2 /* { dg-require-effective-target pthread } */
3 /* { dg-options "-O -ffast-math -ftree-parallelize-loops=2 -g" } */
5 struct S
7 int n;
8 float *a;
9 };
11 int
12 foo (struct S *s)
14 float sum = 0;
15 int i;
16 for (i = 0; i < s->n; i++)
17 sum += s->a[i];
18 return sum;