view gcc/testsuite/gcc.dg/pr59670.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR middle-end/59670 */
/* { dg-do compile } */
/* { dg-options "-O1 -fopenmp-simd" } */

int d[1024];

int
foo (int j, int b)
{
  int l, c = 0;
#pragma omp simd reduction(+: c)
  for (l = 0; l < b; ++l)
    c += d[j + l];
  return c;
}