blob: 744e77a85a441452b1a5214923d0ce4ab091d9a0 (
plain)
1
2
3
4
5
6
7
8
9
|
! { dg-do compile }
! PR fortran/40727
program test
integer, parameter :: sp = kind(1.e0), dp = kind(1.d0)
complex(sp) :: s
complex(dp) :: d
s = cmplx(0.e0, cmplx(0.e0,0.e0)) ! { dg-error "either REAL or INTEGER" }
d = dcmplx(0.d0, cmplx(0.d0,0.d0)) ! { dg-error "either REAL or INTEGER" }
end program test
|