summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/predcom-1.f
blob: 1cc0bf24bad88931296164436ae7d69b2417f800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! PR 32160, complex temporary variables were not marked as gimple registers
! { dg-do compile }
! { dg-options "-O3" }

      REAL             FUNCTION CLANHT( N, E )
      INTEGER            N
      COMPLEX            E( * )
      INTEGER            I
      REAL               ANORM
      INTRINSIC          ABS
            DO 20 I = 1, N
               ANORM = ANORM +ABS( E( I ) )+ ABS( E( I-1 ) )
   20       CONTINUE
      CLANHT = ANORM
      RETURN
      END