Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/realloc_on_assign_5.f03 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! Test the fix for PR47523 in which concatenations did not work ! correctly with assignments to deferred character length scalars. ! ! Contributed by Thomas Koenig <tkoenig@gcc.gnu.org> ! program main implicit none character(:), allocatable :: a, b a = 'a' if (a .ne. 'a') STOP 1 a = a // 'x' if (a .ne. 'ax') STOP 2 if (len (a) .ne. 2) STOP 3 a = (a(2:2)) if (a .ne. 'x') STOP 4 if (len (a) .ne. 1) STOP 5 end program main