blob: 883a59d0d40823c2afee8423088b8e45e4365893 [file]
// RUN: %libomptarget-compile-run-and-check-generic
// XFAIL: intelgpu
#include <stdio.h>
int main() {
int x = 111;
#pragma omp target data map(alloc : x) map(tofrom : x) map(alloc : x)
{
#pragma omp target map(present, alloc : x)
{
x = x + 111;
}
}
printf("After tgt data: %d\n", x); // CHECK: After tgt data: 222
}