3 ! PR 45290: [F08] pointer initialization
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
8 integer, target
:: t1
! SAVE is implicit
9 integer, pointer :: p1
=> t1
16 integer,target
:: i0
= 2
17 integer,target
,dimension(1:3) :: vec
= 1
20 integer, pointer :: dpc
=> i0
24 type (t
), save, target
:: u
26 integer, pointer :: dp
=> i0
27 integer, pointer :: dp2
=> vec(2)
28 integer, pointer :: dp3
=> u
%i
31 if (i0
/=5) call abort()
34 if (i0
/=6) call abort()
37 if (vec(2)/=3) call abort()
40 if (u
%i
/=4) call abort()