gcc/testsuite/gfortran.dg/realloc_on_assign_30.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! PR 85641 - this used to ICE due do infinite recursion. |
| 3 | ! Test case by Antony Lewis. |
| 4 | program tester |
| 5 | character(LEN=:), allocatable :: fields |
| 6 | integer j |
| 7 | character(LEN=4), parameter :: CMB_CL_Fields = 'TEBP' |
| 8 | |
| 9 | fields = '' |
| 10 | j=1 |
| 11 | fields = fields // CMB_CL_Fields(j:j) |
| 12 | |
| 13 | end program tester |