summaryrefslogtreecommitdiff
path: root/offload/test/offloading/fortran/basic_target_region.f90
blob: d13c19b013b6bdbce23856ad8ef3b311b26a8993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! Basic offloading test with a target region
! REQUIRES: flang, amdgpu

! RUN: %libomptarget-compile-fortran-run-and-check-generic
program main
  integer :: x;
  x = 0
!$omp target map(from:x)
    x = 5
!$omp end target
  print *, "x = ", x
end program main

! CHECK: x = 5