]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr54782.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr54782.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target pthread } */
3 /* { dg-options "-O -ffast-math -ftree-parallelize-loops=2 -g" } */
4
5 struct S
6 {
7 int n;
8 float *a;
9 };
10
11 int
12 foo (struct S *s)
13 {
14 float sum = 0;
15 int i;
16 for (i = 0; i < s->n; i++)
17 sum += s->a[i];
18 return sum;
19 }