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