aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/typebound_proc_14.f03
blob: 1f0d7de3b350d7257edc3470cea95acc776eab0e (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
26
27
28
29
30
31
! { dg-do compile }
!
! PR 40117: [OOP][F2008] Type-bound procedure: allow list after PROCEDURE
!
! Contributed by Janus Weil <janus@gcc.gnu.org>

module m

implicit none

type :: t
contains
  procedure :: foo, bar, baz
end type

contains

  subroutine foo (this)
    class(t) :: this
  end subroutine

  real function bar (this)
    class(t) :: this
  end function

  subroutine baz (this, par)
    class(t) :: this
    integer :: par
  end subroutine

end