3 // RUN: %libomptarget-compileopt-generic -fopenmp-target-jit
4 // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
5 // RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
6 // RUN: %libomptarget-run-generic
7 // RUN: %fcheck-plain-generic --input-file %t.pre.ll %s
13 // Ensure that there is only the kernel function left, not any outlined
22 void f(long *A
, int N
) {
24 #pragma omp target map(A[ : N])
26 #pragma omp parallel firstprivate(i)
27 A
[omp_get_thread_num()] = i
;
28 #pragma omp parallel firstprivate(i, N)
29 A
[omp_get_thread_num()] += i
+ N
;
36 printf("%li\n", A
[0]);