nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / transfer_array_intrinsic_1.f90
blob7a24b3e6f2673c6e59696dc363aee6b366b4bfc4
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/))) STOP 1
21 end subroutine test1
23 end