[PATCH, Fortran] Fix Automatics in equivalence test cases was Re: Automatics in Equivalences failures
Jakub Jelinek
jakub@redhat.com
Thu Oct 17 07:58:00 GMT 2019
On Thu, Oct 17, 2019 at 08:43:29AM +0100, Mark Eggleston wrote:
> Please find attached patch for additional test cases. Are these sufficient?
> If so, OK to commit?
>
> Change log:
>
> Â Â Â Mark Eggleston <mark.eggleston@codethink.com>
>
> Â Â Â * gfortran.dg/auto_in_equiv_3.f90: New test.
> Â Â Â * gfortran.dg/auto_in_equiv_4.f90: New test.
> Â Â Â * gfortran.dg/auto_in_equiv_5.f90: New test.
> Â Â Â * gfortran.dg/auto_in_equiv_6.f90: New test.
> Â Â Â * gfortran.dg/auto_in_equiv_7.f90: New test.
Ok, with small nits:
> --- /dev/null
> +++ b/gcc/testsuite/gfortran.dg/auto_in_equiv_4.f90
> @@ -0,0 +1,18 @@
> +! { dg-do compile }
> +! { dg-options "-fdec-static -fno-automatic -fdump-tree-original" }
> +!
> +! Neither of the local variable have the auotmatic attribute so they
s/auotmatic/automatic/
> --- /dev/null
> +++ b/gcc/testsuite/gfortran.dg/auto_in_equiv_5.f90
> @@ -0,0 +1,18 @@
> +! { dg-do compile }
> +! { dg-options "-fdump-tree-original" }
> +!
> +! Neither of the local variable have the auotmatic attribute so they
> +! not be allocated on the stack.
Likewise.
> --- /dev/null
> +++ b/gcc/testsuite/gfortran.dg/auto_in_equiv_6.f90
> @@ -0,0 +1,18 @@
> +! { dg-do compile }
> +! { dg-options "-fdec-static -fdump-tree-original" }
> +!
> +! Neither of the local variable have the auotmatic attribute so they
> +! not be allocated on the stack.
Likewise.
Jakub
More information about the Fortran
mailing list