Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/elemental_dependency_3.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! { dg-options "-fdump-tree-original" } ! ! PR fortran/38669 ! Temporary created for pointer as actual argument of an elemental subroutine ! ! Original testcase by Harald Anlauf <anlauf@gmx.de> program gfcbu84_main implicit none integer :: jplev, k_lev real :: p(42) real, pointer :: q(:) jplev = 42 k_lev = 1 allocate (q(jplev)) call tq_tvgh (q(k_lev:), p(k_lev:)) deallocate (q) contains elemental subroutine tq_tvgh (t, p) real ,intent (out) :: t real ,intent (in) :: p t=p end subroutine tq_tvgh end program gfcbu84_main ! { dg-final { scan-tree-dump-times "atmp" 0 "original" } }