2 ! Checks for corrects warnings if branching to then end of a
3 ! construct at various nesting levels
5 goto 10 ! { dg-warning "Label at ... is not in the same block" }
9 10 end if ! { dg-warning "Label at ... is not in the same block" }
24 end subroutine check_if
26 subroutine check_select(i
)
27 goto 10 ! { dg-warning "Label at ... is not in the same block" }
31 10 end select
! { dg-warning "Label at ... is not in the same block" }
52 end subroutine check_select
56 if (i
/= 2) call abort ()
58 if (i
/= 2) call abort ()