Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr54782.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-require-effective-target pthread } */ /* { dg-options "-O -ffast-math -ftree-parallelize-loops=2 -g" } */ struct S { int n; float *a; }; int foo (struct S *s) { float sum = 0; int i; for (i = 0; i < s->n; i++) sum += s->a[i]; return sum; }