6 ! Intent OUT/INOUT dummy: Actual needs to be an array
7 ! if any actual is an array
12 call sub(i
,1,2) ! OK, only scalar
13 call sub(j
,1,2) ! OK, scalar IN, array OUT
14 call sub(j
,[1,2],3) ! OK, scalar & array IN, array OUT
15 call sub(j
,[1,2],[1,2]) ! OK, all arrays
17 call sub(i
,1,2) ! OK, only scalar
18 call sub(i
,[1,2],3) ! { dg-error "is a scalar" }
19 call sub(i
,[1,2],[1,2]) ! { dg-error "is a scalar" }
21 elemental
subroutine sub(a
,b
,c
)
22 integer :: func
, a
, b
, c