OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [goto_7.f] - Rev 694

Compare with Previous | Blame | View Log

! { dg-do compile }
! { dg-options "-std=legacy" }
 
! Check for error message when computed and assigned gotos reference
! illegal label numbers.
 
      ASSIGN 1 TO I
      GOTO (1, 2, 3, 42), 2 ! { dg-error "is never defined" }
      GOTO I, (1, 2, 3, 43) ! { dg-error "is never defined" }
 1    CONTINUE
 2    CONTINUE
 3    CONTINUE
c     No label 42 or 43.
      END
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.