4 ! duplicate use rename used to be rejected when the target name
5 ! was that of the current program unit
7 ! Original testcase from Roger Ferrer Ibanez <roger.ferrer@bsc.es>
10 INTEGER :: A
, B
, C
, D
, E
, F
, G
, H
, I
14 USE MOO
, ONLY
: X
=> A
, X
=> A
23 USE MOO
, ONLY
: C
! { dg-error "is also the name of the current program unit" }
31 USE MOO
, ONLY
: X
=> E
, X
=> E
40 USE MOO
, ONLY
: X
=> G
! { dg-error "is also the name of the current program unit" }
44 USE MOO
, ONLY
: Y
=> H
! { dg-error "is also the name of the current program unit" }
48 USE MOO
, ONLY
: Z
=> I
, Z
=> I
! { dg-error "is also the name of the current program unit" }