2 ! { dg-options "-fdump-tree-original" }
6 ! Contributed by darmar.xxl@gmail.com
10 real(8), dimension(:), allocatable
:: rsk
16 !*********************
21 type(arr_t2
), target
:: tgt
24 type(arr_t
), pointer :: head
=> null()
27 type(arr_t2
), pointer :: head
=> tgt
30 !***********************
36 type(my_list
) :: my_data
39 type(my_list2
) :: my_data
43 type(data_all_t
) :: dum
44 type(data_all_t2
) :: dum2
46 if (associated(dum
%my_data
%head
)) then
49 print *, 'OK: do_job my_data%head is NOT associated'
52 if (dum2
%my_data
%head
%a
/= 77) &
63 ! { dg-final { scan-tree-dump-times "my_data.head = 0B" 1 "original" } }
64 ! { dg-final { scan-tree-dump-times "my_data.head = &tgt" 1 "original" } }