4 ! Contributed by Tomáš Trnka
7 implicit none (type,external)
12 subroutine bar(x
, y
, z
, n
)
14 type(t
), intent(out
), optional
:: x(:), y(n
), z(:)
18 subroutine foo (n
, nFound
, sVal
)
20 integer, intent(out
) :: nFound
21 character(*), optional
, intent(out
) :: sVal(n
)
25 if (present(sVal
)) then
32 implicit none (type,external)
33 type(t
) :: a(7), b(7), c(:)
36 character(len
=4) :: str
40 if (any(a(:)%i
/= 5)) stop 1
41 if (any(b(:)%i
/= 5)) stop 2
42 if (allocated(c
)) stop 3