aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr95342.f90
blob: 41c987d3bbbe976ba426c57b966cfd8575bdd849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
! { dg-do compile }
! PR fortran/95342 - ICE in gfc_match_subroutine, at fortran/decl.c:7913

module m1
  interface
     module subroutine s()
     end
     subroutine s() bind(c) ! { dg-error "EXTERNAL attribute conflicts" }
     end                    ! { dg-error "END INTERFACE" }
  end interface
end

module m2
  interface
     module function f()
     end
     function f() bind(c)
     end                    ! { dg-error "Duplicate EXTERNAL attribute" }
  end interface
end