1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Test for checking namelist constraints, C8103-C8105
10 use dup
, only
: uniqueName
, dupName
12 !ERROR: 'dupname' is already declared in this scoping unit
13 namelist /dupName
/ x
, x
14 namelist /nl
/ uniquename
! ok
18 use dup
, only
: uniqueName
20 namelist /dupName
/ y
, y
23 subroutine C8104a(ivar
, jvar
)
27 !ERROR: A namelist group object 'jvar' must not be assumed-size
31 subroutine C8104b(ivar
, jvar
)
32 integer, dimension(*) :: jvar
33 !ERROR: A namelist group object 'jvar' must not be assumed-size
34 NAMELIST /NLIST
/ ivar
, jvar
37 subroutine C8104c(jvar
)
38 integer :: jvar(10, 3:*)
39 !ERROR: A namelist group object 'jvar' must not be assumed-size
46 !ERROR: A PRIVATE namelist group object 'x' must not be in a PUBLIC namelist
48 !ERROR: A PRIVATE namelist group object 'x' must not be in a PUBLIC namelist