summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/namelist_1.f90
blob: e4154e9181b52bf93c02b2ded33592e332350f34 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! Check that private entities in public namelists are rejected
module namelist_1
  public
  integer,private :: x
  namelist /n/ x ! { dg-error "cannot be member of PUBLIC namelist" "" }
end module

! { dg-final { cleanup-modules "namelist_1" } }