aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/realloc_on_assign_29.f90
blob: a916066028082478b8ef4c10381705527b9cb6ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do run }
! PR fortran/81116
! The assignment was broken due to a missing temporary.
! Original test case by Clive Page.

program test10
  implicit none
  character(:), allocatable :: string
  !
  string = '1234567890'
  string = string(1:5) // string(7:)
  if (string /= '123457890') STOP 1
end program test10