Debian Codegraph @

gcc/testsuite/gfortran.dg/pdt_34.f03

raw
1 ! { dg-do compile }
2 !
3 ! Tests the fixes for PR82943.
4 !
5 ! Contributed by Alexander Westbrooks <[email protected]>
6 !
7 module m
8 public :: foo, bar, foobar
9
10 type, public :: good_type(n)
11 integer, len :: n = 1
12 contains
13 procedure :: foo
14 end type
15
16 type, public :: good_type2(k)
17 integer, kind :: k = 1
18 contains
19 procedure :: bar
20 end type
21
22 type, public :: good_type3(n, k)
23 integer, len :: n = 1
24 integer, kind :: k = 1
25 contains
26 procedure :: foobar
27 end type
28
29 contains
30 subroutine foo(this)
31 class(good_type(*)), intent(inout) :: this
32 end subroutine
33
34 subroutine bar(this)
35 class(good_type2(2)), intent(inout) :: this
36 end subroutine
37
38 subroutine foobar(this)
39 class(good_type3(*,2)), intent(inout) :: this
40 end subroutine
41
42 end module