Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_proc_14.f03
blob766a0ef66c1b6e1efcb7ede2e41f169bd4edb3e6
1 ! { dg-do compile }
3 ! PR 40117: [OOP][F2008] Type-bound procedure: allow list after PROCEDURE
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 module m
9 implicit none
11 type :: t
12 contains
13   procedure :: foo, bar, baz
14 end type
16 contains
18   subroutine foo (this)
19     class(t) :: this
20   end subroutine
22   real function bar (this)
23     class(t) :: this
24   end function
26   subroutine baz (this, par)
27     class(t) :: this
28     integer :: par
29   end subroutine
31 end
33 ! { dg-final { cleanup-modules "m" } }