blob: 2bb8ff244cc8b9b8290251a2638f06b6eb7c1906 [file] [log] [blame]
! { dg-do compile }
module ptrmod
contains
subroutine lengthX(x, i) ! { dg-error "Dummy 'x' at .1. cannot have an initializer" }
implicit none
real, pointer, intent(out) :: x(:)=>null()
integer :: i
x=>null()
allocate(x(i))
x=i
end subroutine
end module