1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
3 ! Test selector and team-value in CHANGE TEAM statement
7 use iso_fortran_env
, only
: team_type
10 change
team(t
, x
[10,*] => y
)
18 real :: y
[10,*], y2
[*], x
[*]
20 !ERROR: Selector 'y' was already used as a selector or coarray in this statement
21 change
team(t
, x
[10,*] => y
, x2
[*] => y
)
23 !ERROR: Selector 'x' was already used as a selector or coarray in this statement
24 change
team(t
, x
[10,*] => y
, x2
[*] => x
)
26 !ERROR: Coarray 'y' was already used as a selector or coarray in this statement
27 change
team(t
, x
[10,*] => y
, y
[*] => y2
)
39 type(team_type
) :: t3(3)
42 !ERROR: Team value must be of type TEAM_TYPE from module ISO_FORTRAN_ENV
43 change
team(t1
, x
[10,*] => y
)
45 !ERROR: Team value must be of type TEAM_TYPE from module ISO_FORTRAN_ENV
46 change
team(t2
, x
[10,*] => y
)
48 !ERROR: Team value must be of type TEAM_TYPE from module ISO_FORTRAN_ENV
49 change
team(t2
%a
, x
[10,*] => y
)
51 !ERROR: Must be a scalar value, but is a rank-1 array
52 change
team(t3
, x
[10,*] => y
)
54 !ERROR: Team value must be of type TEAM_TYPE from module ISO_FORTRAN_ENV
56 !ERROR: Team value must be of type TEAM_TYPE from module ISO_FORTRAN_ENV
58 !ERROR: Team value must be of type TEAM_TYPE from module ISO_FORTRAN_ENV
60 !ERROR: Team value must be of type TEAM_TYPE from module ISO_FORTRAN_ENV
62 !ERROR: Must be a scalar value, but is a rank-1 array
67 use iso_fortran_env
, only
: team_type
70 type(team_type
) :: t
, t2(2)
72 !ERROR: Must be a scalar value, but is a rank-1 array
74 !ERROR: Must have INTEGER type, but is COMPLEX(4)
76 !ERROR: Must be a scalar value, but is a rank-1 array