Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/pr67987.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 compile } ! PR fortran/67987 ! PR fortran/67988 ! Original code contributed by Gerhard Steinmetz ! gerhard dot steinmetz dot fortran at t-online dot de subroutine p character(-8) :: c = ' ' end subroutine p subroutine pp character(3), parameter :: c = 'abc' character(3) :: x(1) x = c(:-2) print *, len(trim(x(1))) x = [ c(:-2) ] print *, len(trim(x(1))) end subroutine pp