URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [exit_1.f08] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-std=f2008 -fall-intrinsics" }! PR fortran/44709! Check that exit and cycle from within a BLOCK works for loops as expected.! Contributed by Daniel Kraft, d@domob.eu.PROGRAM mainIMPLICIT NONEINTEGER :: i! Simple exit without loop name.DOBLOCKEXITEND BLOCKCALL abort ()END DO! Cycle without loop name.DO i = 1, 1BLOCKCYCLEEND BLOCKCALL abort ()END DO! Exit loop by name from within a BLOCK.loop1: DODOBLOCKEXIT loop1END BLOCKCALL abort ()END DOCALL abort ()END DO loop1! Cycle loop by name from within a BLOCK.loop2: DO i = 1, 1loop3: DOBLOCKCYCLE loop2END BLOCKCALL abort ()END DO loop3CALL abort ()END DO loop2END PROGRAM main
