1 // RUN: %libomptarget-compile-run-and-check-generic
6 // OpenMP 5.1. sec 5.8.6 "Pointer Initialization for Device Data Environments"
7 // p. 160 L32-33: "If a matching mapped list item is not found, the pointer
8 // retains its original value as per the32 firstprivate semantics described in
12 int *A
= (int *)omp_target_alloc(sizeof(int), omp_get_default_device());
18 #pragma omp target map(from : Result)
25 omp_target_free(A
, omp_get_default_device());