pure function funMinus1(b) result(ret) real(dp), intent(in) :: b real(dp) :: ret unused_var(b) ret = -1.0_dp end function funMinus1