summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/imag_1.f
blob: e8af92d221199af8cccd28c372a5ed0ac80f97e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do compile }
      program bug
      implicit none
      complex(kind=8) z
      double precision x,y
      z = cmplx(1.e0_8,2.e0_8)
      y = imag(z)
      y = imagpart(z)
      x = realpart(z)
      end