OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [gamma_3.f90] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { 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
!
9
program gamma_test
10
implicit none
11
intrinsic :: gamma, lgamma
12
real :: x
13
 
14
x = gamma(cmplx(1.0,0.0))            ! { dg-error "is not consistent with a specific intrinsic interface" }
15
x = dgamma(cmplx(1.0,0.0,kind(0d0))) ! { dg-error "must be REAL" }
16
x = gamma(int(1))                    ! { dg-error "is not consistent with a specific intrinsic interface" }
17
x = dgamma(int(1))                   ! { dg-error "must be REAL" }
18
 
19
x = lgamma(cmplx(1.0,0.0))           ! { dg-error "must be REAL" }
20
x = algama(cmplx(1.0,0.0))           ! { dg-error "must be REAL" }
21
x = dlgama(cmplx(1.0,0.0,kind(0d0))) ! { dg-error "must be REAL" }
22
 
23
x = lgamma(int(1))                   ! { dg-error "must be REAL" }
24
x = algama(int(1))                   ! { dg-error "must be REAL" }
25
x = dlgama(int(1))                   ! { dg-error "must be REAL" }
26
end program gamma_test
27
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.