2 ! { dg-options "-fcoarray=single" }
6 ! Assumed-rank constraint checks and other diagnostics
9 subroutine foo(x
) ! { dg-error "Assumed-type variable x at .1. may not have the INTENT.OUT. attribute" }
10 type(*), intent(out
) :: x
14 integer, intent(out
) :: x(..)
19 y
= 7 ! { dg-error "Assumed-rank variable y at .1. may only be used as actual argument" }
20 print *, y
+ 10 ! { dg-error "Assumed-rank variable y at .1. may only be used as actual argument" }
21 print *, y
! { dg-error "Assumed-rank variable y at .1. may only be used as actual argument" }
25 integer :: x(..), y(..)
26 call valid3(x(:)) ! { dg-error "Assumed-rank variable x at .1. shall not have a subobject reference" }
34 integer, codimension
[*] :: x(..) ! { dg-error "The assumed-rank array at .1. shall not have a codimension" }
37 subroutine foo5(y
) ! { dg-error "may not have the VALUE or CODIMENSION attribute" }