summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/unexpected_eof.f
blob: d3cdb99596ab6476f383eb23ec3d16881a871bb9 (plain)
1
2
3
4
5
6
7
8
! { dg-do compile }
! PR66461  ICE on missing end program in fixed source
      program p
         integer x(2)
         x = -1
         if ( x(1) < 0 .or.
     &        x(2) < 0 ) print *, x
! { dg-error "Unexpected end of file" "" { target *-*-* } 0 }