OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [block_8.f08] - Blame information for rev 302

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! { dg-options "-std=f2008 -fall-intrinsics" }
3
 
4
! Check BLOCK with SAVE'ed variables.
5
 
6
PROGRAM main
7
  IMPLICIT NONE
8
  INTEGER :: i
9
 
10
  DO i = 1, 100
11
    BLOCK
12
      INTEGER, SAVE :: summed = 0
13
      summed = summed + i
14
      IF (i == 100 .AND. summed /= 5050) CALL abort ()
15
    END BLOCK
16
  END DO
17
END PROGRAM main

powered by: WebSVN 2.1.0

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