| 1 |
! PR fortran/88304 |
| 2 |
|
| 3 |
module pr88304 |
| 4 |
implicit none |
| 5 |
integer :: p |
| 6 |
contains |
| 7 |
function foo (x, y, z, w) |
| 8 |
integer, intent(in) :: x, y |
| 9 |
character(*), optional, intent(out) :: z |
| 10 |
integer, optional, intent(out) :: w |
| 11 |
integer :: foo |
| 12 |
foo = 1 |
| 13 |
end function foo |
| 14 |
subroutine bar () |
| 15 |
integer :: s |
| 16 |
s = baz (1) |
| 17 |
contains |
| 18 |
function baz (u) |
| 19 |
integer, intent(in) :: u |
| 20 |
integer :: baz |
| 21 |
integer :: q |
| 22 |
integer :: r (10) |
| 23 |
r = 0 |
| 24 |
baz = 1 |
| 25 |
q = foo (p, r(u), w = baz) |
| 26 |
end function baz |
| 27 |
end subroutine bar |
| 28 |
end module pr88304 |