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

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

! { dg-do compile }
! PR fortran/91785
! Code contributed by Gerhard Steinmetz
program p
   complex :: a(*)   ! { dg-error "Assumed size array at" }
   real :: b(2)
   b = a%im          ! { dg-error "upper bound in the last dimension" }
end