blob: 7c1db0c5e77fd2dffcb837c71aeca79fa80de236 [file] [edit]
! RUN: %python %S/test_errors.py %s %flang_fc1
! RUN: %flang_fc1 -fdebug-dump-symbols %s | FileCheck %s
module m
contains
pure subroutine get_round(r)
use ieee_arithmetic, only: ieee_round_type, ieee_get_rounding_mode
type(ieee_round_type), intent(out) :: r
call ieee_get_rounding_mode(r)
call ieee_get_rounding_mode(r, radix=2)
end subroutine
pure subroutine set_round(r)
use ieee_arithmetic, only: ieee_round_type, ieee_set_rounding_mode
type(ieee_round_type), intent(in) :: r
call ieee_set_rounding_mode(r)
call ieee_set_rounding_mode(r, radix=2)
end subroutine
pure subroutine get_uflow(g)
use ieee_arithmetic, only: ieee_get_underflow_mode
logical, intent(out) :: g
call ieee_get_underflow_mode(g)
end subroutine
pure subroutine set_uflow(g)
use ieee_arithmetic, only: ieee_set_underflow_mode
logical, intent(in) :: g
call ieee_set_underflow_mode(g)
end subroutine
end module
! CHECK: ieee_get_rounding_mode_0, EXTERNAL, PRIVATE, SIMPLE (Subroutine):
! CHECK: ieee_get_rounding_mode_i4, EXTERNAL, PRIVATE, SIMPLE (Subroutine):
! CHECK: ieee_get_underflow_mode_l4, EXTERNAL, PRIVATE, SIMPLE (Subroutine):
! CHECK: ieee_set_rounding_mode_0, EXTERNAL, PRIVATE, SIMPLE (Subroutine):
! CHECK: ieee_set_rounding_mode_i4, EXTERNAL, PRIVATE, SIMPLE (Subroutine):
! CHECK: ieee_set_underflow_mode_l4, EXTERNAL, PRIVATE, SIMPLE (Subroutine):