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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

! { dg-do compile }
! { dg-options "-std=f2008" }

! Check for label mismatch errors with BLOCK statements.

PROGRAM main
  IMPLICIT NONE

  BLOCK 
  END BLOCK wrongname ! { dg-error "Syntax error" }

  myname: BLOCK
  END BLOCK wrongname ! { dg-error "Expected label 'myname'" }

  myname2: BLOCK
  END BLOCK ! { dg-error "Expected block name of 'myname2'" }
END PROGRAM main ! { dg-error "Expecting END BLOCK" }
! { dg-excess-errors "Unexpected end of file" }

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.