(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
illegal_boz_arg_4.f90
! { dg-do compile }
! { dg-options "-std=f2018" }
! PR fortran/103413
! Contributed by G.Steinmetz

program p
  type t
     class(*), allocatable :: a
  end type
  type(t) :: x
  allocate (x%a, source=z'1') ! { dg-error "type incompatible" }
  allocate (x%a, mold=z'1')   ! { dg-error "type incompatible" }
end