aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/coarray_31.f90
blob: bab8b0aecf7e1044ed9e32414de8477a1070ed1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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" } }