[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / use_21.f90
blob4ec17513ec048c429b536780d5478382cd0f6b73
1 ! { dg-do compile }
2 ! { dg-options "-Wall" }
4 ! PR fortran/51056
6 ! Contributed by Kacper Kowalik
8 module domain
9 implicit none
10 private
11 public :: domain_container, dom
13 type :: domain_container
14 integer :: D_x !< set to 1 when x-direction exists, 0 otherwise
15 contains
16 procedure :: init => init_domain_container
17 end type domain_container
19 type(domain_container) :: dom
21 contains
22 subroutine init_domain_container(this)
23 implicit none
24 class(domain_container), intent(inout) :: this
25 this%D_x = 0
26 end subroutine init_domain_container
27 end module domain
29 program ala
30 use domain, only: dom
31 implicit none
32 call dom%init
33 end program ala