2 ! { dg-options "-std=f95 -Wall" }
6 ! Check for invalid Fortran 95 initialization expressions
10 real, parameter :: r1
= real(33) ! { dg-error "Fortran 2003: Function 'real' as initialization expression" }
11 real, parameter :: r2
= dble(33) ! { dg-error "Fortran 2003: Function 'dble' as initialization expression" }
12 complex, parameter :: z
= cmplx(33,33)! { dg-error "Fortran 2003: Function 'cmplx' as initialization expression" }
13 real, parameter :: r4
= sngl(3.d0
) ! { dg-error "Fortran 2003: Function 'sngl' as initialization expression" }
14 real, parameter :: r5
= float(33) ! { dg-error "Fortran 2003: Function 'float' as initialization expression" }