libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gfortran.dg / transfer_array_intrinsic_1.f90
blob0d828efa66b9db7a7a66a0fa11a19a29efaff2b1
1 ! { dg-do run }
2 ! Tests the patch to implement the array version of the TRANSFER
3 ! intrinsic (PR17298).
5 ! test the PR is fixed.
7 call test1 ()
9 contains
11 subroutine test1 ()
12 complex(4) :: z = (1.0, 2.0)
13 real(4) :: cmp(2), a(4, 4)
14 integer(2) :: it(4, 2, 4), jt(32)
16 ! The PR testcase.
18 cmp = transfer (z, cmp) * 2.0
19 if (any (cmp .ne. (/2.0, 4.0/))) call abort ()
21 end subroutine test1
23 end