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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [block_8.f08] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 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.