(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
coarray_46.f90
! { dg-do compile }
! { dg-options "-fcoarray=lib -lcaf_single" }
!
! Test the fix for PR83319
!
module foo_module
  implicit none
  type foo
    integer, allocatable :: i(:)
  end type
end module

  use foo_module
  implicit none
  type(foo), save :: bar[*]
  allocate(bar%i(1))     ! Used to ICE here.
end