Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / typebound_proc_15.f03
blob37907b3f4df3b02a78533f2e27c74f16298c1d67
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
34 ! { dg-final { cleanup-modules "m" } }