3 ! PR 40427: Procedure Pointer Components with OPTIONAL arguments
5 ! Original test case by John McFarland <john.mcfarland@swri.org>
6 ! Modified by Janus Weil <janus@gcc.gnu.org>
11 SUBROUTINE sub_template(i,j,o)
12 INTEGER, INTENT(in) :: i
13 INTEGER, INTENT(in), OPTIONAL :: j, o
14 END SUBROUTINE sub_template
18 PROCEDURE(sub_template), POINTER, NOPASS :: s
21 PROCEDURE(sub_template), POINTER :: f
32 SUBROUTINE sub(i,arg2,arg3)
33 INTEGER, INTENT(in) :: i
34 INTEGER, INTENT(in), OPTIONAL :: arg2, arg3
35 if (present(arg2)) call abort()
36 if (.not. present(arg3)) call abort()
37 if (2*i/=arg3) call abort()