summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr68318_2.f90
blob: 451b28f2a479d3aa9eb2288038a11bf04a4c7e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
! { dg-do compile }
! PR fortran/68318
! Original code submitted by Gerhard Steinmetz
! <gerhard dot steinmetz dot fortran at t-online dot de>
!
module m1
   implicit none
contains
   subroutine s1
   entry e
   end
end module

module m2
   use m1         ! { dg-error "(2)" }
   implicit none
contains
   subroutine s2
   entry e        ! { dg-error "is already defined" }
   end
end module
! { dg-prune-output "Cannot change attribute" }