aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr56007.f
blob: 644f28efe625423e8ab3c3dbc96bae58c7a70ea1 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! PR fortran/56007
! Based on testcase by Tobias Schlüter

      integer iw1(90), doiw1(90)
      do iw1(1)=1
      do iw1=1
      do iw1=1,2    ! { dg-error "cannot be an array" }
      end do        ! { dg-error "Expecting END PROGRAM statement" }
      END