summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/module_procedure_double_colon_1.f90
blob: 200f0ff26e1b84e2fd7c2a0b443cef9e3860f988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! { dg-do compile }
!
! PR fortran/49265
! Contributed by Erik Toussaint
!
module m1
   implicit none
   interface foo
      module procedure::bar
      module procedure ::bar_none
      module procedure:: none_bar
   end interface
contains
   subroutine bar
   end subroutine
   subroutine bar_none(i)
     integer i
   end subroutine
   subroutine none_bar(x)
     real x
   end subroutine
end module
! { dg-final { cleanup-modules "m1" } }