summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr49472.f90
blob: 1baf82e8b113e604067e54d20cd4aa22dfc4e200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! PR rtl-optimization/49472
! { dg-do compile }
! { dg-options "-O -fcompare-debug -ffast-math" }
subroutine pr49472
  integer, parameter :: n = 3
  real(8) :: a, b, c, d, e (n+1)
  integer :: i
  do i=2, (n+1)
    b = 1. / ((i - 1.5d0) * 1.)
    c = b * a
    d = -b * c / (1. + b * b) ** 1.5d0
    e(i) = d
  end do
  call dummy (e)
end subroutine