From 5656d96ecc468139423ce8a5ad846a38cbbeebbe Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Mon, 22 Jul 2013 19:59:33 +0200 Subject: [PATCH] Really add testsuite/gfortran.dg/coarray_31.f90, which should be in commit Rev. Really add testsuite/gfortran.dg/coarray_31.f90, which should be in commit Rev. 201140. From-SVN: r201142 --- gcc/testsuite/gfortran.dg/coarray_31.f90 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/coarray_31.f90 diff --git a/gcc/testsuite/gfortran.dg/coarray_31.f90 b/gcc/testsuite/gfortran.dg/coarray_31.f90 new file mode 100644 index 00000000000..bab8b0aecf7 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/coarray_31.f90 @@ -0,0 +1,22 @@ +! { dg-do compile } +! { dg-options "-fdump-tree-original -fcoarray=single" } +! +! PR fortran/57906 +! PR fortran/52052 +! +type t + integer, allocatable :: x(:)[:] + class(*), allocatable :: z(:)[:] + class(*), allocatable :: d[:] +end type t +type t2 + type(t) :: y +end type t2 +type(t2) :: a, b +a = b +end + +! { dg-final { scan-tree-dump "a.y.x.data = D.\[0-9\]+.y.x.data;" "original" } } +! { dg-final { scan-tree-dump "a.y.z._data.data = D.\[0-9\]+.y.z._data.data;" "original" } } +! { dg-final { scan-tree-dump "a.y.d._data.data = D.\[0-9\]+.y.d._data.data;" "original" } } +! { dg-final { cleanup-tree-dump "original" } } -- 2.30.2