Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray_50.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
3 !
4 ! PR fortran/105526 - check TEAM arguments to coarray intrinsics
5
6 subroutine p
7 use iso_fortran_env, only: team_type
8 implicit none
9 type(team_type) :: team
10 type t
11 integer :: i
12 end type t
13 type(t) :: z
14 form team (0, team)
15 form team (0, 0) ! { dg-error "scalar expression of type TEAM_TYPE" }
16 form team (0, [team]) ! { dg-error "scalar expression of type TEAM_TYPE" }
17 form team ([0], team) ! { dg-error "scalar INTEGER" }
18 form team (0., team) ! { dg-error "scalar INTEGER" }
19 change team (0) ! { dg-error "scalar expression of type TEAM_TYPE" }
20 end team
21 sync team (0) ! { dg-error "scalar expression of type TEAM_TYPE" }
22 end