view gcc/testsuite/gfortran.dg/team_change_1.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { 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