(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
gomp/
pr104757.c
       1  /* PR middle-end/104757 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -fopenmp" } */
       4  
       5  #pragma omp declare target
       6  void
       7  foo (int x, int y, int *z)
       8  {
       9    int j = 0;
      10    #pragma omp simd linear(j:x + y)
      11    for (int i = 0; i < 64; i++)
      12      j += x + y;
      13  }
      14  #pragma omp end declare target