summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pointer_to_substring.f90
blob: 054a29d56bbfd043d5908424c64a4ff7378ee02a (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! PR36724 - ICE on pointer to substring
! testcase contributed by Loukas Peristeras.

  character(LEN=132), target :: line
  character(LEN=1), pointer :: t

  read(*,'(A)') line
  t=>line(1:1)
end