4 ! Test for additional errors with type-bound procedure bindings.
5 ! Namely that non-scalar base objects are rejected for TBP calls which are
6 ! NOPASS, and that passed-object dummy arguments must be scalar, non-POINTER
14 PROCEDURE, NOPASS :: myproc
19 ! FIXME: uncomment and dejagnuify once class arrays are enabled
20 ! PROCEDURE, PASS :: nonscalar ! { "must be scalar" }
21 PROCEDURE, PASS :: is_pointer ! { dg-error "must not be POINTER" }
22 PROCEDURE, PASS :: is_allocatable ! { dg-error "must not be ALLOCATABLE" }
30 ! SUBROUTINE nonscalar (me)
31 ! CLASS(t2), INTENT(IN) :: me(:)
32 ! END SUBROUTINE nonscalar
34 SUBROUTINE is_pointer (me)
35 CLASS(t2), POINTER, INTENT(IN) :: me
36 END SUBROUTINE is_pointer
38 SUBROUTINE is_allocatable (me)
39 CLASS(t2), ALLOCATABLE, INTENT(IN) :: me
40 END SUBROUTINE is_allocatable
44 CALL arr%myproc () ! { dg-error "must be scalar" }
49 ! { dg-final { cleanup-modules "m" } }