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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [block_8.f08] - Rev 384

Compare with Previous | Blame | View Log

! { dg-do run }
! { dg-options "-std=f2008 -fall-intrinsics" }

! Check BLOCK with SAVE'ed variables.

PROGRAM main
  IMPLICIT NONE
  INTEGER :: i

  DO i = 1, 100
    BLOCK
      INTEGER, SAVE :: summed = 0
      summed = summed + i
      IF (i == 100 .AND. summed /= 5050) CALL abort ()
    END BLOCK
  END DO
END PROGRAM main

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.