aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/interface_43.f90
blob: 5a5294f99b9ba1862a5f93f9c5121ec5721d7178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
! { dg-do compile }
! PR fortran/84922
! This should compile without error.
module foom

   implicit none

   interface foo
      module procedure foo_sngl
      module procedure foo_dble
   end interface foo

   contains

      subroutine foo_sngl(n, f, g, h)
         integer n
         real f, g, h
      end subroutine foo_sngl

      subroutine foo_dble(n, f, g, h)
         integer n
         double precision f, g, h
      end subroutine foo_dble

end module foom