blob: e6f0e9c0f0f137ca9cbd427f28e28aeae5bc17e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
! { dg-do compile }
! PR fortran/56007
! Based on testcase by Tobias Schlüter
integer iw1(90), doiw1(90)
do iw1=1,2 ! { dg-error "cannot be an array" }
end do ! { dg-error "Expecting END PROGRAM statement" }
do iw1(1)=1
do iw1=1 ! { dg-error "cannot be an array" }
end do ! { dg-error "Expecting END PROGRAM statement" }
END program
|