1 ! More tests for MIN/MAX with optional arguments
5 if (m1(3,4) /= 4) call abort
6 if (m1(3) /= 3) call abort
7 if (m1() /= 2) call abort
9 if (m1(3,4) /= 4) call abort
10 if (m1(3) /= 3) call abort
12 integer function m1(a1
,a2
)
13 integer, optional
, intent(in
) :: a1
, a2
14 m1
= max(1, 2, a1
, a2
)
17 integer function m2(a1
,a2
)
18 integer, optional
, intent(in
) :: a1
, a2
19 m2
= max(1, a1
, 2, a2
)