view gcc/testsuite/gfortran.dg/pr50069_1.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do run }

  implicit none
  integer i
  character(LEN=6) :: a(1) = "123456"
  forall (i = 3:4) a(1)(i:i+2) = a(1)(i-2:i)
  !print *,a ! displays '12@' must be '121234'
  IF (a(1) .ne. "121234") STOP 1
end