PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / maxerrors.f90
blob6c3232d2f3258f24b0e2e7fd0c55113f9176ad68
1 ! { dg-do compile }
2 ! { dg-options "-fmax-errors=1" }
3 ! PR66528
4 ! { dg-prune-output "compilation terminated" }
5 program main
6 read (*,*) n
7 if (n<0) then
8 print *,foo
9 end ! { dg-error "END IF statement expected" }
10 print *,bar
11 end program main