Debian Codegraph @

gcc/testsuite/gfortran.dg/pr45337_1.f90

raw
1 ! { dg-do compile }
2
3 module ptrmod
4 contains
5 subroutine lengthX(x, i) ! { dg-error "Dummy 'x' at .1. cannot have an initializer" }
6 implicit none
7 real, pointer, intent(out) :: x(:)=>null()
8 integer :: i
9 x=>null()
10 allocate(x(i))
11 x=i
12 end subroutine
13 end module
14