File tree Expand file tree Collapse file tree 4 files changed +35
-16
lines changed
gcc/testsuite/gfortran.dg Expand file tree Collapse file tree 4 files changed +35
-16
lines changed Original file line number Diff line number Diff line change 55!
66 use iso_fortran_env, only : team_type
77 implicit none
8- type (team_type) :: team
9- integer :: new_team
10- integer , parameter :: standard_initial_value=- 1
11-
12- if (team_number()/= standard_initial_value) call abort
8+ type (team_type) team
9+ integer new_team
1310
1411 new_team = mod (this_image(),2 )+ 1
1512
1815 if (team_number()/= new_team) call abort
1916 end team
2017
21- if (team_number()/= standard_initial_value) call abort
2218end
Original file line number Diff line number Diff line change 11! { dg-do run }
22! { dg-options "-fcoarray=single" }
33!
4- ! Tests if end team reverts this_image value
4+ ! Tests if team_number intrinsic fucntion works
55!
66 use iso_fortran_env, only : team_type
77 implicit none
88 type (team_type) :: team
9- integer :: orig_i
10-
11- orig_i = this_image ()
12- form team (orig_i + 1 ,team)
13- change team (team)
14- end team
15- if ( orig_i .NE. this_image () ) call abort
16- end
9+ integer , parameter :: standard_initial_value=- 1
1710
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
1816
17+ if (team_number()/= standard_initial_value) call abort
18+ end
Original file line number Diff line number Diff line change 11! { dg-do run }
22! { dg-options "-fcoarray=single" }
33!
4+ ! Tests if form team works
45!
56 use iso_fortran_env, only : team_type
67 implicit none
78 type (team_type) :: team
89
9- form team (this_image(),team)
10+ form team (mod ( this_image(), 2 ) + 1 ,team)
1011end
1112
1213
14+
Original file line number Diff line number Diff line change 1+ ! { dg-do run }
2+ ! { dg-options "-fcoarray=single" }
3+ !
4+ ! Tests if team_number intrinsic fucntion works
5+ !
6+ use iso_fortran_env, only : team_type
7+ implicit none
8+ type (team_type) team
9+ integer , parameter :: standard_initial_value=- 1
10+ integer new_team
11+
12+ if (team_number()/= standard_initial_value) call abort
13+
14+ new_team = mod (this_image(),2 )+ 1
15+ form team (new_team,team)
16+ change team (team)
17+ if (team_number()/= new_team) call abort
18+ end team
19+
20+ if (team_number()/= standard_initial_value) call abort
21+ end
You can’t perform that action at this time.
0 commit comments