2 ! PR fortran/100551 - Passing return value to class(*) dummy argument
8 result
= test ( (result
)) ! works
9 if (result
/= 1) stop 1
10 result
= test (int (result
)) ! issue 1
12 if (result
/= 1) stop 2
13 result
= test (f (result
)) ! issue 2
15 if (result
/= 2) stop 3
17 integer function test(x
)
18 class(*), intent(in
) :: x
27 integer, intent(in
) :: x