summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/graphite/id-pr46994.f90
blob: 93eff45fb77d0c710037c88493743ffcee001d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-options "-O -ffast-math -fgraphite-identity -fno-tree-dce" }

subroutine foo (m)
  integer :: m, i, j, k
  real :: s
  s = 0
  do i = 1, 9
    do j = 1, 2*m
      do k = 1, 2*m
        s = s + 1
      end do
    end do
  end do
end subroutine foo