libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_proc_15.f03
blob31d10ca27163cd8b4780ffc3f1f5f532f4fc2adf
1 ! { dg-do compile }
2 ! { dg-options "-std=f2003" }
4 ! PR 40117: [OOP][F2008] Type-bound procedure: allow list after PROCEDURE
6 ! Contributed by Janus Weil <janus@gcc.gnu.org> 
8 module m
10 implicit none
12 type :: t
13 contains
14   procedure :: foo
15   procedure :: bar, baz  ! { dg-error "PROCEDURE list" }
16 end type
18 contains
20   subroutine foo (this)
21     class(t) :: this
22   end subroutine
24   subroutine bar (this)
25     class(t) :: this
26   end subroutine
28   subroutine baz (this)
29     class(t) :: this
30   end subroutine
32 end