Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / do_iterator.f90
blobcb3e50d59bccdc545731e96e1536af44800fb438
1 ! { dg-do compile }
2 ! various checks which verify that we don't change do-iterators
3 DO I=1,5 ! { dg-error "cannot be redefined" "changing do-iterator 1" }
4 I=1 ! { dg-error "cannot be redefined" "changing do-iterator 1" }
5 END DO
6 DO I=1,5 ! { dg-error "cannot be redefined" "changing do-iterator 2" }
7 READ(5,*) I ! { dg-error "cannot be redefined" "changing do-iterator 2" }
8 END DO
9 DO I=1,5 ! { dg-error "cannot be redefined" "changing do-iterator 3" }
10 READ(5,*,iostat=i) j ! { dg-error "cannot be redefined" "changing do-iterator 3" }
11 ENDDO
12 END
13 ! { dg-error "Invalid character" "character" { target *-*-* } 7 }