pointer-align-1.f90 318 B

12345678910111213141516171819202122
  1. ! PR middle-end/63247
  2. program test
  3. implicit none
  4. integer(kind=2) a(4)
  5. a = 10;
  6. !$acc parallel copy(a(2:4))
  7. a(2) = 52
  8. a(3) = 53
  9. a(4) = 54
  10. !$acc end parallel
  11. if (a(1) .ne. 10) call abort
  12. if (a(2) .ne. 52) call abort
  13. if (a(3) .ne. 53) call abort
  14. if (a(4) .ne. 54) call abort
  15. end program test