Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/auto_in_equiv_2.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
! { dg-do run } ! { dg-options "-fdec-static -frecursive -fno-automatic" } ! Contributed by Mark Eggleston <mark.eggleston@codethink.com> ! ! Check that -fno-automatic does not break recursion. The recursive ! function is not marked with the resursive key word consequently ! local variables can be made static when -fno-automatic is used. The ! recursive function contains an equivalence that has a variable with ! the automatic attribute and one without. ! include "auto_in_equiv_1.f90" ! { dg-warning "Flag '-fno-automatic' overwrites '-frecursive'" "warning" { target *-*-* } 0 }