view gcc/testsuite/gfortran.dg/transpose_reshape_r10.f90 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do run }
! { dg-require-effective-target fortran_large_real }
program main
  integer,parameter :: k = selected_real_kind (precision (0.0_8) + 1)
  character(len=90) line
  real(k) :: a(3,3)
  real(k) :: b(9)
  a = 1.0_k
  a(1,3) = 0.0_k
  write (line,'(9G10.6)') transpose(a)
  write (line,'(9G10.6)') reshape(a,shape(b))
end