blob: 6059fa89c79374f76bd5757e5dfc6e5a62cd8871 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
! { 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
|