Debian Codegraph @

gcc/testsuite/gfortran.dg/internal_pack_25.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-fno-inline-arg-packing -O -fdump-tree-original" }
3 ! PR fortran/92738, middle-end/91512
4 ! Check that -fno-inline-pack does indeed suppress inline packing.
5 module x
6 implicit none
7 contains
8 subroutine foo(x)
9 real, dimension(:), intent(inout) :: x
10 call bar (x, size(x))
11 end subroutine foo
12 subroutine bar (x, n)
13 integer, intent(in) :: n
14 real, dimension(n) :: x
15 x = -x
16 end subroutine bar
17 end module x
18 ! { dg-final { scan-tree-dump-times "_gfortran_internal_pack" 1 "original" } }
19 ! { dg-final { scan-tree-dump-times "_gfortran_internal_unpack" 1 "original" } }