1 ! Offloading test that tests that if(present(a)) compiles and executes without
2 ! causing any compilation errors, primarily a regression test that does not
3 ! yield interesting results.
4 ! REQUIRES: flang, amdgpu
6 ! RUN: %libomptarget-compile-fortran-run-and-check-generic
12 real, dimension(:), optional
:: a
14 !$omp target data if(present(a)) map(alloc:a)
19 end subroutine routine
29 ! CHECK: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.