1 ! RUN: %python %S/test_errors.py %s %flang_fc1
6 !ERROR: RETURN statement is not allowed in a CRITICAL construct
14 !ERROR: An image control statement is not allowed in a CRITICAL construct
20 use iso_fortran_env
, only
: team_type
24 !ERROR: An image control statement is not allowed in a CRITICAL construct
30 integer, allocatable
, codimension
[:] :: ca
33 !ERROR: An image control statement is not allowed in a CRITICAL construct
38 !ERROR: An image control statement is not allowed in a CRITICAL construct
44 use iso_fortran_env
, only
: team_type
49 !ERROR: An image control statement is not allowed in a CRITICAL construct
57 !ERROR: An image control statement is not allowed in a CRITICAL construct
64 type(event_type
) :: x
, y
66 !ERROR: An image control statement is not allowed in a CRITICAL construct
68 !ERROR: An image control statement is not allowed in a CRITICAL construct
78 !ERROR: An image control statement is not allowed in a CRITICAL construct
88 !ERROR: An image control statement is not allowed in a CRITICAL construct
90 !ERROR: An image control statement is not allowed in a CRITICAL construct
97 integer, allocatable
, codimension
[:] :: ca
102 integer, allocatable
, codimension
[:] :: cb
104 !TODO: Deallocation of this coarray is not currently caught
107 end subroutine test10
110 integer, allocatable
, codimension
[:] :: ca
, cb
112 !ERROR: An image control statement is not allowed in a CRITICAL construct
113 call move_alloc(cb
, ca
)
115 end subroutine test11
119 !ERROR: An image control statement is not allowed in a CRITICAL construct
122 end subroutine test12