summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr32921.f
blob: 0661208edde5900005332c376c7db6f26b88940b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
! { dg-do compile }
! { dg-options "-O2 -fdump-tree-lim2" }
! gfortran -c -m32 -O2 -S junk.f
!
      MODULE LES3D_DATA

      IMPLICIT REAL*8 (A-H,O-Z)

      PARAMETER ( NSPECI = 1, ND = 7 + NSPECI )

      INTEGER IMAX

      DOUBLE PRECISION,ALLOCATABLE,DIMENSION(:,:,:) ::
     >         UAV,QAV


      END MODULE LES3D_DATA
!---------------------------------------------------------------------
!------------------------------------------------------------------------
      SUBROUTINE FLUXI()

      USE LES3D_DATA
      IMPLICIT REAL*8(A-H,O-Z)

      ALLOCATABLE QS(:)

      ALLOCATE( QS(0:IMAX))
      QS=0D0

      RETURN
      END
!------------------------------------------------------------------------
!------------------------------------------------------------------------
      SUBROUTINE EXTRAPI()

      USE LES3D_DATA
      IMPLICIT REAL*8(A-H,O-Z)

      I1 = 0
      I2 = IMAX - 1

            DO I = I1, I2
               UAV(I,1,2) = QAV(I,1,2)
            END DO

      RETURN
      END
! { dg-final { scan-tree-dump-times "stride" 4 "lim2" } }