rt_gccstream/gcc/testsuite/gfortran.dg/implicit_6.f90

11 lines
249 B
Fortran

! { dg-do compile }
! { dg-options "-std=legacy" }
!
! PR 24643
! substring references on implicitly typed CHARACTER variables didn't work
PROGRAM P
IMPLICIT CHARACTER*8 (Y)
YLOCAL='A'
YBTABLE=YLOCAL(1:2)
END