Added translation for do statements with exit

This commit is contained in:
Mariano Uvalle 2019-04-12 14:08:28 -05:00
parent 304873e6ca
commit 1be80bcbd3
5 changed files with 613 additions and 518 deletions

View file

@ -1,5 +1,6 @@
program test
integer :: a, b, c, d, x, y, z, w
real :: e, f
a = 2 + 4 * (2 + 1) / 3 * b
b = a
if (a > b) then
@ -11,4 +12,10 @@ elif (a > d) then
else
a = w
end if
do then
if (a > b .or. c > b) then
exit
end if
a = a + 1
end do
end program