3 ! Clean up, made when working on PR fortran/52864
5 ! Test some PURE and intent checks - related to pointers.
10 class(t
), pointer :: y
15 call bar(x
) ! { dg-error "can not appear in a variable definition context" }
16 call bar2(x
) ! { dg-error "is local to a PURE procedure and has the POINTER attribute" }
17 call bb(y
) ! { dg-error "is local to a PURE procedure and has the POINTER attribute" }
19 pure
subroutine bar(x
)
20 integer, pointer, intent(inout
) :: x
22 pure
subroutine bar2(x
)
26 class(t
), pointer, intent(in
) :: x