aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr88169_3.f90
blob: 6bc24ed6b7190d002fe7e996677e5245fe5af88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
! { dg-options "-std=f95" }
module foo_nml
   implicit none
   real :: x = -1
   namelist /foo/ x
end module

program main
   use foo_nml, only: bar => foo, x
   implicit none
   real a
   namelist /bar/a  ! { dg-error "already is USE associated" }
end program
! { dg-final { cleanup-modules "foo_nml" } }