Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/internal_pack_23.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 run } ! PR fortran/90539 - this used to cause an ICE. module t2 implicit none contains subroutine foo(a) real, dimension(*) :: a if (a(1) /= 1.0 .or. a(2) /= 2.0) stop 1 end subroutine foo end module t2 module t1 use t2 implicit none contains subroutine bar(a) real, dimension(:) :: a if (a(1) /= 1.0 .or. a(2) /= 2.0) stop 1 call foo(a) end subroutine bar end module t1 program main use t1 call bar([1.0, 2.0]) end program main