2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / dependency_18.f90
blob7b95453bbbb82890ec0f31b8ca7944f57e5702c6
1 ! { dg-do compile }
2 ! { dg-options "-O2 -fdump-tree-original" }
3 subroutine foo(a,i,j,k)
4 integer, dimension (10) :: a
5 integer :: i, j, k
7 a(1:5:2) = a(8:6:-1)
9 a(1:8) = a(2:9)
11 a(4:7) = a(4:1:-1)
13 a(i:i+2) = a(i+4:i+6)
15 a(j:1:-1) = a(j:5)
17 a(k:k+2) = a(k+1:k+3)
18 end subroutine
19 ! { dg-final { scan-tree-dump-times "malloc" 0 "original" } }