29 lines · plain
1! Check that if there is a label or a name on an label-do-stmt,2! then it is not lost when rewriting it to an non-label-do-stmt.3 4! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>&1 | FileCheck %s5 6! CHECK: end do7! CHECK: 2 do8! CHECK: mainloop: do9! CHECK: end do mainloop10 11! CHECK-NOT: do [1-9]12 13subroutine foo()14 do 1 i=1,215 goto 2161 continue172 do 3 i=1,2183 continue19 20 mainloop : do 4 i=1,10021 do j=1,2022 if (j==i) then23 ! cycle mainloop: TODO: fix invalid complaints that mainloop construct24 ! is not in scope.25 end if26 end do274 end do mainloop28end subroutine29