Debian Codegraph @

gcc/testsuite/gfortran.dg/pr95342.f90

raw
1 ! { dg-do compile }
2 ! PR fortran/95342 - ICE in gfc_match_subroutine, at fortran/decl.c:7913
3
4 module m1
5 interface
6 module subroutine s()
7 end
8 subroutine s() bind(c) ! { dg-error "EXTERNAL attribute conflicts" }
9 end ! { dg-error "END INTERFACE" }
10 end interface
11 end
12
13 module m2
14 interface
15 module function f()
16 end
17 function f() bind(c)
18 end ! { dg-error "Duplicate EXTERNAL attribute" }
19 end interface
20 end