2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / interface_18.f90
blob30461e5c4c78010bd3af1e11f92b4c6767095b3f
1 ! { dg-do compile }
2 ! { dg-options "-std=f2003" }
4 ! Public procedures with private types for the dummies
5 ! is valid F2003, but invalid per Fortran 95, Sect. 5.2.3
6 ! See interface_15.f90 for the F95 test case.
8 module mytype_application
9 implicit none
10 private
11 public :: mytype_test
12 type :: mytype_type
13 integer :: i=0
14 end type mytype_type
15 contains
16 subroutine mytype_test( mytype )
17 type(mytype_type), intent(in out) :: mytype
18 end subroutine mytype_test
19 end module mytype_application