1! RUN: %S/test_any.sh %s %flang %t 2! negative tests: we don't want DO CONCURRENT semantics constraints checked 3! when the loops are not DO CONCURRENT 4 5! EXEC: ${F18} -funparse-with-symbols %s 2>&1 | ${FileCheck} %s 6! CHECK-NOT: image control statement not allowed in DO CONCURRENT 7! CHECK-NOT: RETURN not allowed in DO CONCURRENT 8! CHECK-NOT: call to impure procedure in DO CONCURRENT not allowed 9! CHECK-NOT: IEEE_GET_FLAG not allowed in DO CONCURRENT 10! CHECK-NOT: ADVANCE specifier not allowed in DO CONCURRENT 11! CHECK-NOT: SYNC ALL 12! CHECK-NOT: SYNC IMAGES 13 14module ieee_exceptions 15 interface 16 subroutine ieee_get_flag(i, j) 17 integer :: i, j 18 end subroutine ieee_get_flag 19 end interface 20end module ieee_exceptions 21 22subroutine do_concurrent_test1(i,n) 23 implicit none 24 integer :: i, n 25 do 10 i = 1,n 26 SYNC ALL 27 SYNC IMAGES (*) 28 return 2910 continue 30end subroutine do_concurrent_test1 31 32subroutine do_concurrent_test2(i,j,n,flag) 33 use ieee_exceptions 34 implicit none 35 integer :: i, j, n, flag, flag2 36 do i = 1,n 37 change team (j) 38 call ieee_get_flag(flag, flag2) 39 end team 40 write(*,'(a35)',advance='no') 41 end do 42end subroutine do_concurrent_test2 43