view gcc/testsuite/gfortran.dg/char_result_16.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

! PR fortran/78757
! { dg-do compile }
! { dg-options "-O1" }

program pr78757
  implicit none
  character (len = 30), target :: x
  character (len = 30), pointer :: s
  s => foo (30_8)
contains
  function foo (i)
    integer (8) :: i
    character (len = i), pointer :: foo
    foo => x
  end function foo
end program pr78757