Debian Codegraph @

gcc/testsuite/gfortran.dg/realloc_on_assign_29.f90

raw
1 ! { dg-do run }
2 ! PR fortran/81116
3 ! The assignment was broken due to a missing temporary.
4 ! Original test case by Clive Page.
5
6 program test10
7 implicit none
8 character(:), allocatable :: string
9 !
10 string = '1234567890'
11 string = string(1:5) // string(7:)
12 if (string /= '123457890') STOP 1
13 end program test10