summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/in_pack_rank7.f90
blob: aa6286689c3cd6d10eb1af9909a921aabcf7205c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do run }
! PR 21354:  Rank 7 was not handled correctly by many library
!            functions, including in_pack.
program main
  real, dimension (2,2,2,2,2,2,2):: a
  a = 1.0
  call foo(a(2:1:-1,:,:,:,:,:,:))
end program main

subroutine foo(a)
  real, dimension (2,2,2,2,2,2,2):: a
end subroutine foo