summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/invalid_procedure_name.f90
blob: dd319382b4d92b363cdfc6beac23ec2ff0e9175b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do compile }
! PR25061 procedure name conflict
! Test case from PR.
INTERFACE I1 ! { dg-error "" }
 SUBROUTINE S1(I)
 END SUBROUTINE S1
 SUBROUTINE S2(R)
 END SUBROUTINE S2
END INTERFACE I1
CONTAINS
 SUBROUTINE I1(I) ! { dg-error "already defined as a generic" }
 END SUBROUTINE I1
END