☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gfortran.dg
/
pr45337_1.f90
☽
☼
gcc/testsuite/gfortran.dg/pr45337_1.f90
code
plain
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