gamma_3.f90

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

F90
28
字号
! { dg-do compile }!! 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!program gamma_testimplicit noneintrinsic :: gamma, lgammareal :: xx = gamma(cmplx(1.0,0.0))            ! { dg-error "is not consistent with a specific intrinsic interface" }x = dgamma(cmplx(1.0,0.0,kind(0d0))) ! { dg-error "must be REAL" }x = gamma(int(1))                    ! { dg-error "is not consistent with a specific intrinsic interface" }x = dgamma(int(1))                   ! { dg-error "must be REAL" }x = lgamma(cmplx(1.0,0.0))           ! { dg-error "is not consistent with a specific intrinsic interface" }x = algama(cmplx(1.0,0.0))           ! { dg-error "must be REAL" }x = dlgama(cmplx(1.0,0.0,kind(0d0))) ! { dg-error "must be REAL" }x = lgamma(int(1))                   ! { dg-error "is not consistent with a specific intrinsic interface" }x = algama(int(1))                   ! { dg-error "must be REAL" }x = dlgama(int(1))                   ! { dg-error "must be REAL" }end program gamma_test

⌨️ 快捷键说明

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