2010-12-20 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / interface_18.f90
blobd0a54754883bdcfda0589b5ae7cee798ede6136e
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
21 ! { dg-final { cleanup-modules "mytype_application" } }