Retro68/gcc/gcc/testsuite/gfortran.dg/team_change_1.f90
2018-12-28 16:30:48 +01:00

19 lines
328 B
Fortran

! { dg-do run }
! { dg-options "-fcoarray=single" }
!
! Tests if change team worked
!
use iso_fortran_env, only : team_type
implicit none
type(team_type) team
integer new_team
new_team = mod(this_image(),2)+1
form team (new_team,team)
change team (team)
if (team_number()/=new_team) STOP 1
end team
end