view gcc/testsuite/gfortran.dg/associate_37.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 }
! { dg-options "-fcoarray=single" }
!
! Tests the fix for the regression PR83901.
!
! Contributed by G Steinmetz  <gscfq@t-online.de>
!
program p
   character(8), allocatable :: x[:]
   allocate (x[*])
   x = 'abc'
   associate (y => x)
     if (y .ne. 'abc') stop 1
   end associate
end