| 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 |
| 12 |
|