blob: 8ca28dc96ab22791f0988b73db0be77968eb0c9a [file] [log] [blame]
! { 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