blob: f90a7357756d385bf0f76060134dd010051374cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
program main
implicit none
real, dimension (:), pointer :: x
x => null ()
x => test ()
if (.not. associated (x)) call abort
if (size (x) .ne. 10) call abort
contains
function test()
real, dimension (:), pointer :: test
if (associated (x)) call abort
allocate (test (10))
if (associated (x)) call abort
end function test
end program main
|