summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/block_end_error_1.f90
blob: 4bbe89bba72efe11ad849af64412ed2a1c718f1f (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
!
! PR fortran/62536
! Bad "end block" causes ICE.
subroutine s
   block
   end block named ! { dg-error "Syntax error in END BLOCK statement" }
   return
endsubroutine ! { dg-error "Expecting END BLOCK statement" }
! { dg-prune-output "Unexpected end of file" }