[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / do_iterator.f90
blobe1fa18b09688f88fa47e3db66e1e3852420b2397
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