blob: 37907b3f4df3b02a78533f2e27c74f16298c1d67 (
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
32
33
34
|
! { dg-do compile }
! { dg-options "-std=f2003" }
!
! 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
procedure :: bar, baz ! { dg-error "PROCEDURE list" }
end type
contains
subroutine foo (this)
class(t) :: this
end subroutine
subroutine bar (this)
class(t) :: this
end subroutine
subroutine baz (this)
class(t) :: this
end subroutine
end
! { dg-final { cleanup-modules "m" } }
|