2 ! { dg-options "-std=f95" }
3 ! PR21986 - test based on original example.
4 ! A public subroutine must not have private-type, dummy arguments.
5 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
9 public
:: dummysub
! { dg-error "PRIVATE type and cannot be a dummy argument" }
14 subroutine dummysub(size
, arg_array
)
15 type(intwrapper
) :: size
16 real, dimension(size
%n
) :: arg_array
17 real :: local_array(4)
18 end subroutine dummysub
21 ! { dg-final { cleanup-modules "modboom" } }