mirror of
https://github.com/siemens-mobile-hacks/doxygen.git
synced 2026-11-25 22:27:34 +00:00
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...
33 lines
437 B
Fortran
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
|