PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / team_end_1.f90
blob02faca45a87c1b2b648aed610daa03be928f95cb
1 ! { dg-do run }
2 ! { dg-options "-fcoarray=single" }
4 ! Tests if team_number intrinsic fucntion works
6 use iso_fortran_env, only : team_type
7 implicit none
8 type(team_type) :: team
9 integer, parameter :: standard_initial_value=-1
11 associate(new_team => mod(this_image(),2)+1)
12 form team (new_team,team)
13 change team (team)
14 end team
15 end associate
17 if (team_number()/=standard_initial_value) STOP 1
18 end