mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-12 11:29:30 +00:00
23 lines
471 B
Fortran
23 lines
471 B
Fortran
! PR fortran/49792
|
|
! { dg-do run }
|
|
! { dg-options "-std=f2003 -fall-intrinsics" }
|
|
|
|
subroutine reverse(n, a)
|
|
integer :: n
|
|
real(kind=8) :: a(n)
|
|
!$omp parallel workshare
|
|
a(:) = a(n:1:-1)
|
|
!$omp end parallel workshare
|
|
end subroutine reverse
|
|
|
|
program pr49792
|
|
integer :: b(16)
|
|
integer, allocatable :: a(:)
|
|
b = 1
|
|
!$omp parallel workshare
|
|
a = b
|
|
!$omp end parallel workshare
|
|
if (size(a).ne.size(b)) call abort()
|
|
if (any (a.ne.b)) call abort()
|
|
end program pr49792
|