1 ! RUN: %flang_fc1 -fopenmp -fdebug-dump-symbols %s | FileCheck %s
3 ! 2.10.1 use_device_ptr clause
4 ! List items that appear in a use_device_ptr clause are converted into device
5 ! pointers to the corresponding list item in the device data environment.
7 subroutine omp_target_data
10 !CHECK: b size=8 offset=4096: ObjectEntity type: TYPE(c_ptr)
12 integer, pointer :: arrayB
14 !$omp target data map(tofrom: a, arrayB) use_device_ptr(b)
15 !CHECK: b (OmpUseDevicePtr): HostAssoc
17 call c_f_pointer(b
, arrayB
)
20 end subroutine omp_target_data