3 ! { dg-options "-std=f2008" }
12 type, extends(t1
) :: t2
15 class(t1
), allocatable
:: array1(:,:)
16 class(t2
), allocatable
:: array2(:,:)
21 select
type(b
=> foo(1))
25 call sub_with_in_and_inout_param(b
,b
)
33 class(t1
), POINTER :: foo(:)
43 subroutine sub_with_in_and_inout_param(y
, z
)
44 type(t2
), INTENT(IN
) :: y(:)
45 class(t2
), INTENT(INOUT
) :: z(:)
51 ! { dg-error "being used in a variable definition context .assignment." " " { target *-*-* } 23 }
52 ! { dg-error "being used in a variable definition context .actual argument to INTENT = OUT.INOUT." " " { target *-*-* } 25 }
53 ! { dg-error "Pointer assignment target is neither TARGET nor POINTER" " " { target *-*-* } 37 }
54 ! { dg-error "Pointer assignment target is neither TARGET nor POINTER" " " { target *-*-* } 39 }