Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/pr71523_1.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! PR Fortran/71523 ! ! { dg-do compile } ! { dg-options "-fdump-tree-original -finit-local-zero -fautomatic -fmax-stack-var-size=8" } ! ! Make sure that variables larger than max-stack-var-size which become ! static are not given automatic initializers on function entry. ! function set(idx, val) implicit none integer, intent(in) :: idx, val integer set integer arr(100) set = arr(idx) arr(idx) = val return end function ! There should be no automatic initializer for arr ! { dg-final { scan-tree-dump-times "arr = " 0 "original" } }