2 ! { dg-options "-fcoarray=single" }
10 ! (a) Invalid (was ICEing before)
11 class(t
), target
:: p1
! { dg-error "must be dummy, allocatable or pointer" }
12 class(t
), pointer :: p2
25 class(t
), allocatable
, target
:: p1
! (b) Valid
26 class(t
), pointer :: p2
39 class(t
), allocatable
:: p1
! (c) Invalid as not TARGET
40 class(t
), pointer :: p2
44 p2
=> p1
! { dg-error "Pointer assignment target is neither TARGET nor POINTER" }
46 p2
=> p1
! { dg-error "Pointer assignment target is neither TARGET nor POINTER" }
53 class(t
), pointer :: p1
! (d) Valid
54 class(t
), pointer :: p2