blob: 81d34791d0166646cd22d9da963ae8aaaaf51110 [file] [log] [blame]
! Check that nested DO loop doesn't affect refactoring
! behavior. Select inner DO loop - REAL data type
! and decrement behavior - implicit step count.
! (This test selecting to replace with DO WHILE loop.)
PROGRAM NestedDoRealInnerDecrementImplicit
REAL :: counter, sum, counterin, sumin
sum = 0.0
sumin = 0.0
DO counter = 1.2, 1.8, 0.1
sum = sum + counter
counterin = 1.8
DO WHILE (counterin >= 1.2) !<<<<< 12, 5, 12, 33, 1, pass
sumin = sumin + counterin
counterin = counterin - 1
END DO
END DO
PRINT *, sum
END PROGRAM NestedDoRealInnerDecrementImplicit