! { dg-do run }! PR 21354: Rank 7 was not handled correctly by many library! functions, including in_pack.program mainreal,dimension(2,2,2,2,2,2,2)::aa=1.0call foo(a(2:1:-1,:,:,:,:,:,:))end program mainsubroutine foo(a)real,dimension(2,2,2,2,2,2,2)::aend subroutine foo