summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/invalid_contains_1.f90
blob: df4bb3fef2d64c68d74eb61c7bc57c48f968de6c (plain)
1
2
3
4
5
6
7
8
! { dg-do compile } 
! PR18923 segfault after subroutine name confusion.
module FOO
contains
  subroutine FOO ! { dg-error "conflicts with PROCEDURE" }
    character(len=selected_int_kind(0)) :: C ! { dg-error "data declaration statement" }
  end subroutine ! { dg-error "Expecting END MODULE statement" }
end