3 ! Test that for CAF components _gfortran_caf_deregister is called
4 ! Test that norealloc happens for CAF components during assignment
8 integer, allocatable
:: CAF
[:]
14 type(t
), target
:: x
,y
15 integer, pointer :: ptr
16 allocate(x
%caf
[*], y
%caf
[*])
19 if (.not
.allocated(x
%caf
)) call abort()
20 if (.not
.allocated(y
%caf
)) call abort()
21 if (y
%caf
/= 6) call abort ()
23 if (x
%caf
/= 6) call abort ()
24 if (.not
. associated (ptr
,y
%caf
)) call abort()
25 if (associated (ptr
,x
%caf
)) call abort()
27 if (y
%caf
/= 123) call abort ()
28 if (x
%caf
/= 6) call abort ()