1 2 3 4 5 6 7 8 9 10 11 12
! { dg-do compile } ! { dg-options "-fmax-errors=1" } ! PR66528 ! { dg-prune-output "compilation terminated" } program main read (*,*) n if (n<0) then print *,foo end ! { dg-error "END IF statement expected" } print *,bar end program main