2018-10-04 01:24:07 +08:00
|
|
|
! when the loops are not DO CONCURRENT
|
|
|
|
|
2021-02-04 19:14:57 +08:00
|
|
|
! RUN: not %flang_fc1 -fdebug-unparse-with-symbols %s 2>&1 | FileCheck %s
|
2018-10-04 01:24:07 +08:00
|
|
|
! CHECK-NOT: image control statement not allowed in DO CONCURRENT
|
|
|
|
! CHECK-NOT: RETURN not allowed in DO CONCURRENT
|
2019-09-10 02:40:31 +08:00
|
|
|
! CHECK-NOT: call to impure procedure in DO CONCURRENT not allowed
|
2018-10-10 05:18:16 +08:00
|
|
|
! CHECK-NOT: IEEE_GET_FLAG not allowed in DO CONCURRENT
|
2018-10-04 01:24:07 +08:00
|
|
|
! CHECK-NOT: ADVANCE specifier not allowed in DO CONCURRENT
|
|
|
|
! CHECK-NOT: SYNC ALL
|
|
|
|
! CHECK-NOT: SYNC IMAGES
|
|
|
|
|
2018-10-10 05:18:16 +08:00
|
|
|
module ieee_exceptions
|
|
|
|
interface
|
|
|
|
subroutine ieee_get_flag(i, j)
|
|
|
|
integer :: i, j
|
|
|
|
end subroutine ieee_get_flag
|
|
|
|
end interface
|
|
|
|
end module ieee_exceptions
|
|
|
|
|
2018-10-04 01:24:07 +08:00
|
|
|
subroutine do_concurrent_test1(i,n)
|
|
|
|
implicit none
|
|
|
|
integer :: i, n
|
|
|
|
do 10 i = 1,n
|
|
|
|
SYNC ALL
|
|
|
|
SYNC IMAGES (*)
|
|
|
|
return
|
|
|
|
10 continue
|
|
|
|
end subroutine do_concurrent_test1
|
|
|
|
|
|
|
|
subroutine do_concurrent_test2(i,j,n,flag)
|
2018-10-10 05:18:16 +08:00
|
|
|
use ieee_exceptions
|
2018-10-04 01:24:07 +08:00
|
|
|
implicit none
|
|
|
|
integer :: i, j, n, flag, flag2
|
|
|
|
do i = 1,n
|
|
|
|
change team (j)
|
|
|
|
call ieee_get_flag(flag, flag2)
|
|
|
|
end team
|
|
|
|
write(*,'(a35)',advance='no')
|
|
|
|
end do
|
|
|
|
end subroutine do_concurrent_test2
|