aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/vector_subscript_4.f90
blob: 5c341dab4a5a24d3a4aa3d2e3a2d4be8c5ec05a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! { dg-options "-fdump-tree-original" }
!
! Test the fix for PR37903, in which the temporary for the vector index
! got the wrong size.
!
! Contributed by Mikael Morin <mikael.morin@tele2.fr>
!
     integer :: i(-1:1) = 1, j(3) = 1, k(3)
      k = j((/1,1,1/)+i)
      end
! { dg-final { scan-tree-dump-times "A\.2\\\[3\\\]" 1 "original" } }
! { dg-final { cleanup-tree-dump "original" } }