gamma_2.f90

来自「用于进行gcc测试」· F90 代码 · 共 33 行

F90
33
字号
! { dg-do compile }! { dg-options "-std=f2003 -Wall" }!! Test the vendor intrinsic (d)gamma, lgamma and algama/dlgama! gamma is also part of the Fortran 2008 draft; lgamma is called! log_gamma in the Fortran 2008 draft.!! PR fortran/32980!subroutine foo()intrinsic :: gammaintrinsic :: dgammaintrinsic :: lgammaintrinsic :: algamaintrinsic :: dlgamainteger, parameter :: sp = kind(1.0)integer, parameter :: dp = kind(1.0d0)real(sp) :: rsp = 1.0_spreal(dp) :: rdp = 1.0_dprsp = gamma(rsp)  ! FIXME:  "is not included in the selected standard"rdp = gamma(rdp)  ! FIXME:  "is not included in the selected standard"rdp = dgamma(rdp) ! { dg-error "is not included in the selected standard" }rsp = lgamma(rsp) ! FIXME:  "is not included in the selected standard"rdp = lgamma(rdp) ! FIXME:  "is not included in the selected standard"rsp = algama(rsp) ! { dg-error "is not included in the selected standard" }rdp = dlgama(rdp) ! { dg-error "is not included in the selected standard" }end subroutine fooend

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?