Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/auto_in_equiv_4.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
! { dg-do compile } ! { dg-options "-fdec-static -fno-automatic -fdump-tree-original" } ! ! Neither of the local variable have the automatic attribute so they ! not be allocated on the stack. subroutine foo integer :: a integer :: b equivalence (a, b) a = 5 if (b.ne.5) stop 1 end subroutine ! { dg-final { scan-tree-dump "static union" "original" } } ! { dg-final { scan-tree-dump "static integer\\(kind=4\\) a" "original" } } ! { dg-final { scan-tree-dump "static integer\\(kind=4\\) b" "original" } }