(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
allocate_class_2.f90
! { dg-do compile }
!
! PR 52552: [OOP] ICE when trying to allocate non-allocatable object giving a dynamic type
!
! Contributed by <gccbgz.lionm@xoxy.net>


  type t
    integer :: i
  end type
  
  class(t) :: o      ! { dg-error "must be dummy, allocatable or pointer" }

  allocate(t::o)     ! { dg-error "is neither a data pointer nor an allocatable variable" }

end