| 1 |
!{ dg-do run } |
| 2 |
|
| 3 |
! Check that team_number is supported in coindices. |
| 4 |
! Adapted from code sent by Thomas Koenig <[email protected]> |
| 5 |
|
| 6 |
program pr98903 |
| 7 |
use, intrinsic :: iso_fortran_env |
| 8 |
integer :: me, n, s |
| 9 |
integer :: a[*] |
| 10 |
type(team_type) :: team |
| 11 |
|
| 12 |
me = this_image() |
| 13 |
n = num_images() |
| 14 |
a = 42 |
| 15 |
s = 42 |
| 16 |
|
| 17 |
! Checking against single image only. Therefore team statements are |
| 18 |
! not viable nor are they (yet) supported by GFortran. |
| 19 |
if (a[1, team_number=-1, stat=s] /= 42) stop 1 |
| 20 |
if (s /= 0) stop 2 |
| 21 |
|
| 22 |
s = 42 |
| 23 |
if (a[1, team = team, stat=s] /= 42) stop 3 |
| 24 |
if (s /= 0) stop 4 |
| 25 |
|
| 26 |
s = 42 |
| 27 |
if (a[1, stat=s] /= 42) stop 5 |
| 28 |
if (s /= 0) stop 6 |
| 29 |
end program pr98903 |
| 30 |
|