doxygen/testing/088_module_var.f90
Melven Roehrig-Zoellner 827294d41b Fixes for handling of PUBLIC/PRIVATE in Fortran
Before access statements `public :: myType` in modules were ignored as
well as public/private access specifications in type definitions.

Also added a test case for this which assures the correct behavior for
some cases...
2022-08-14 23:26:03 +02:00

33 lines
437 B
Fortran

!// objective: test visibility of variables in modules
!// check: namespacem1.xml
!// check: namespacem2.xml
!// config: OPTIMIZE_FOR_FORTRAN=YES
module M1
implicit none
private
public :: V3
integer :: V1
public :: V1
integer, public :: V2
integer :: V3
end module M1
module M2
implicit none
private :: V1
integer :: V1
integer :: V2
integer, private :: V3
integer :: V4
public :: V4
end module M2