aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr65453.f90
blob: 9f40121b4432194daf8e9f523419bafcd0ae81ab (plain)
1
2
3
4
5
6
7
8
! { dg-do compile }
! PR fortran/65453
! Contributed by Tobias Burnus  <burnus at gcc.gnu.org>
procedure() :: foo   ! { dg-error "(1)" }
  contains
    subroutine foo() ! { dg-error "clashes with procedure" }
    end
end ! { dg-error "Two main PROGRAMs" }