(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
pointer_assign_12.f90
! { dg-do compile }
! PR 70260 - this used to ICE
! Original test case by Gehard Steinmetz
module m
   interface gkind
      procedure g
   end interface
contains
   integer function g()
      g => 1 ! { dg-error "Pointer assignment target cannot be a constant" }
   end
   subroutine f(x)
      character(kind=kind(gkind())) :: x
   end
end