Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/internal_pack_5.f90 @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
! { dg-do compile } ! { dg-options "-fdump-tree-original" } ! ! PR fortran/36909 ! ! Check that no unneeded internal_unpack is ! called (INTENT(IN)!). ! program test implicit none integer :: a(3,3) call foo(a(1,:)) contains subroutine foo(x) integer,intent(in) :: x(3) end subroutine foo end program test ! { dg-final { scan-tree-dump-times "_gfortran_internal_pack" 1 "original" } } ! { dg-final { scan-tree-dump-times "_gfortran_internal_unpack" 0 "original" } }