aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/access_spec_1.f90
blob: 90c74cd3c485c10f2af6045535cc0d4981bbff57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do compile }
! { dg-require-visibility "" }
! PR fortran/31472
! Access specifications: Valid Fortran 2003 code
module mod
  implicit none
  private
  integer, public :: i
  integer, private :: z
  integer :: j, x
  private :: j
  public  :: x
  type, public :: bar
    PRIVATE
    integer, public :: y  ! Fortran 2003
    integer, private :: z  ! Fortran 2003
  end type
end module