PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / realloc_on_assign_29.f90
bloba916066028082478b8ef4c10381705527b9cb6ad
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.
6 program test10
7 implicit none
8 character(:), allocatable :: string
10 string = '1234567890'
11 string = string(1:5) // string(7:)
12 if (string /= '123457890') STOP 1
13 end program test10