2 ! { dg-options "-std=gnu" }
4 ! Test of fix (patch unknown) for pr19181 and pr21300. This test is based
5 ! on the example given in 21300. Note that this can be executed.
7 ! Contributed by Paul Thomas <pault@gnu.org>
10 real, DIMENSION(:), POINTER :: geopos
13 TYPE(ast_obs
), PARAMETER :: undefined_ast_obs
= AST_OBS(NULL())
14 type(ast_obs
) :: my_ast_obs
15 real, target
, dimension(10) :: rt
17 my_ast_obs
%geopos
=> rt
18 if (.not
.associated (my_ast_obs
%geopos
)) call abort ()
20 call get_null_ast_obs (my_ast_obs
)
21 if (associated (my_ast_obs
%geopos
)) call abort ()
25 SUBROUTINE get_null_ast_obs (obs1
)
27 obs1
= undefined_ast_obs
29 END SUBROUTINE get_null_ast_obs