1! { dg-do compile } 2! 3! Test the vendor intrinsic (d)gamma, lgamma and algama/dlgama 4! gamma is also part of the Fortran 2008 draft; lgamma is called 5! log_gamma in the Fortran 2008 draft. 6! 7! PR fortran/32980 8! 9program gamma_test 10implicit none 11intrinsic :: gamma, lgamma 12real :: x 13 14x = gamma(cmplx(1.0,0.0)) ! { dg-error "is not consistent with a specific intrinsic interface" } 15x = dgamma(cmplx(1.0,0.0,kind(0d0))) ! { dg-error "must be REAL" } 16x = gamma(int(1)) ! { dg-error "is not consistent with a specific intrinsic interface" } 17x = dgamma(int(1)) ! { dg-error "must be REAL" } 18 19x = lgamma(cmplx(1.0,0.0)) ! { dg-error "must be REAL" } 20x = algama(cmplx(1.0,0.0)) ! { dg-error "must be REAL" } 21x = dlgama(cmplx(1.0,0.0,kind(0d0))) ! { dg-error "must be REAL" } 22 23x = lgamma(int(1)) ! { dg-error "must be REAL" } 24x = algama(int(1)) ! { dg-error "must be REAL" } 25x = dlgama(int(1)) ! { dg-error "must be REAL" } 26end program gamma_test 27 28