aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/pr104757.c
blob: 738396523af7769c64a8e64bff33ce2c1dd8ba38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR middle-end/104757 */
/* { dg-do compile } */
/* { dg-options "-O2 -fopenmp" } */

#pragma omp declare target
void
foo (int x, int y, int *z)
{
  int j = 0;
  #pragma omp simd linear(j:x + y)
  for (int i = 0; i < 64; i++)
    j += x + y;
}
#pragma omp end declare target